Testing GL shaders
This project is a React Native + GLv3 alpha + Expo mashup to create a somewhat Instagram-like MVP with image filtering & stickers.
Preview:
Trying it out
To see it in action, just follow these steps
git clone https://github.com/kelset/react-native-glshaders-testing.git
cd react-native-glshaders-testing
npm i
(note: please make sure you are running npm v4)
exp start
And then scan the QR code with the Expo app.
Current issues
Hopefully step by step they will get solved.
- It's really slow
- On Android, the Save image works in a fancy way. If I add a sticker it actually shows the image.
Troubleshooting
Apparently, to make it work, there are some things to sort out:
- First thing to do is to follow what said in this StackOverflow answer but write this
tools:overrideLibrary="fr.greweb.rngl"
- based on this issue here the way to fix it is to install Android's NDK
r10e
, downloadable from here. - And also adding this is necessary.
- Temp fix for GL -- can't make it work anymore, I'll stick to iOS simulator atm
- Need to use
[email protected]
to make it work with Expo properly gl-react-native
doesn't work when attached to the debugger
Acknowledgments
The work of this project is mostly a merge of these awesome projects by some awesome people:
- instagram like filters
- sticker fanciness, inspired by Jani's work
- able to save images, via
react-native-view-shot
- this fork from Brent that managed to make it work with Expo