[ART] Art and Pattern w/ Images
See original GitHub issueJust saw that Pattern hasn’t been add yet in the react-native art implementation.
else if (type === PATTERN) {
// todo
}
Any idea when this will be added, would love to take advantage of it.
Or any other recommendations on how to render an Image to the Surface
Issue Analytics
- State:
- Created 8 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Pattern Art Pictures | Download Free Images on Unsplash
Download the perfect pattern art pictures. Find over 100+ of the best free pattern art images. Free for commercial use ✓ No attribution...
Read more >100 Prints & Patterns ideas - Pinterest
Apr 5, 2017 - Explore Pillo Gonzales's board "Prints & Patterns" on Pinterest. See more ideas about prints, print patterns, pattern.
Read more >Art And Craft Pattern Pictures, Images and Stock Photos
Search from 5360893 Art And Craft Pattern stock photos, pictures and royalty-free images from iStock. Find high-quality stock photos that you won't find ......
Read more >How to Add Abstract Patterns to Your Artwork - Art is Fun
Learn about patterns in art: find out how abstract patterns can make your art more visually interesting - no matter what style you...
Read more >Art pattern Images | Free Vectors, Stock Photos & PSD
Find & Download Free Graphic Resources for Art Pattern. 1135000+ Vectors, Stock Photos & PSD files. ✓ Free for commercial use ✓ High...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Just stumbled across the same issue… nearly a year later:) Had a quick look/play and it looks like the Pattern implementation in ARTPattern.m is wired up to display an image using _image = CGImageRetain([RCTConvert CGImage:array[1]]); ;, but it just receives a string from the fill pattern prop of the image location entered in JS so can’t actually create an image… also note it looks like react packager doesn’t pick up the image location and bundle it… so i think to get the image displaying will need to look into what Image does to bundle an image and then change it into a filepath native can load… Im a long way from an expert in this part but will try and find some time to look into and submit a PR.
However… . you can get an image in a surface now in a way that will work with web react-art and reactARTNative by using a Data URI instead of a url… just add something along the lines of the below and you’ll get your fill pattern in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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/LvB3QAAAMFJREFUeNpiqIcAbz0ogwFKm7GgCjgyZMihCLCkc0nkIAnIMVRw2UhDBGp5fcurGOyLfbhVtJwLdJkY8oscZCsFPBk5spiNaoTC4hnqk801Qi2zLQyD2NlcWWP5GepN5TOtSxg1QwrV01itpECG2kaLy3AYiCWxcRozQWyp9pNMDWePDI4QgVpbx5eo7a+mHFOqAxUQVeRhdrLjdFFQggqo5tqVeSS456UEQgWE4/RBboxyC4AKCEI9Wu9lUl8PEGAAV7NY4hyx8voAAAAASUVORK5CYII=’, 100, 100 ,0,0)}
@browniefed Hit me up if you work on some React ART documentation, I’d be glad to help. I’ve been using it too and finding the lack of documentation frustrating.