Surface + ImageFilters not working properly on Android
See original GitHub issueI use Surface (from gl-react-expo) and ImageFilters (from "react-native-gl-image-filters) for my project and on iOs it is working.
However, on Android photos with filters are shown properly when visible on the screen for the first time, but then when I scrolldown so given photo is out of screen and come back to it, it doesn’t display and only white area is shown.
Why is that? What is the possible fix for that?
Code extract below:
`import { Surface } from “gl-react-expo”; import ImageFilters from “react-native-gl-image-filters”;
…
<Surface
style={{
width: photoWidth,
height: photoHeight,
borderRadius: 5,
}}
>
<ImageFilters
{...FILTERS.find((f) => f.id === tempFilter).filter}
width={filterWidth}
height={filterHeight}
>
{{
uri: props.image_cropped,
}}
</ImageFilters>
</Surface>
`
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Not able to render surface shaders on Android 5 #230 - GitHub
Show an image with the filters of react-native-gl-image-filters applied ... Surface + ImageFilters not working properly on Android ...
Read more >Photos not uploading to Surface Go from Android
Photos not uploading to Surface Go from Android ... However, Microsoft's instructions after that don't work and sync is not paused.
Read more >androidx.compose.material - Android Developers
An ElevationOverlay is an overlay applied to the background color of Surface components, used to emphasize elevation in dark theme, where shadows are...
Read more >Fun with Non-Photorealistic image filters | by Steve Liles
Output from “Comic Strip” for Android — not completely terrible, but not ... I'm now in the process of putting together this app...
Read more >surface 0.2.0+6 | Flutter Package - Pub.dev
Shapeable, layered, intrinsincally animated container with convenient access to blurry ImageFilters, InkResponse, and HapticFeedback.
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
@GregoryNative
I uploaded extract of my app which contains the code that is involved in displaying the list of filtered photo.
https://snack.expo.io/tJjU-1yQP
Will be extremely grateful for your help on that 😉 Best, Adrian
Hi. I don’t think that it’s related. In your code example you don’t use
gl-react-image
library as mention in thread which you shared.