This repository has been archived by the owner on Jan 1, 2020. It is now read-only.
Now targeting >= React Native 0.28.
- iOS: using the new
loadImageWithURLRequest
for Image loading. The oldloadImageWithoutClipping
has been deprecated. this changes make gl-react-native 2.28 incompatible with older React Native versions. - iOS: in the same time I have refactored a bit the iOS GLImage.m implementation, by inspiring from latest React Native RCTImageView work. It might help performance.
- exposes
resolveAssetSource
. You canimport {resolveAssetSource} from "gl-react-native";
. As commented here, you will have to use it for now if you want to inject local images into gl-react-native uniform textures. See also documentation - If you now try to rasterize a
RN.Image
in, you will get a warning. This is because it's very ineffective to do so, and we recommend people to either directly give the image url in uniforms or to usegl-react-image
that implements the same React Native Image resizeMode straight in OpenGL.
See also documentation for these 2 last points.
Happy GL-uing, people !