You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
npm ls gl-react gl-react-dom gl-react-native gl-react-expo # Please run and paste the output of this
Petstagram@0.0.1 /home/lakinduakash/revokex/projects/pets_mobile/Petstagram
├── gl-react@4.0.1
└─┬ gl-react-native@4.0.1
└── gl-react-expo@4.0.1
When metro server is enabled Shader is applied to the child image(uri:imgPath). But when debugger is disconnected from computer ,shader won't work.It just display empty background. Same issue in release build apk.
I assume the issue is in {inputImageTexture2: require('../assets/filters/map.png')} cannot get the image assets when metro server is disconnected. Without any external texture maps, shaders works without any issue even metro server is not running. Is there any other way to refer image assets. React native won't add those images into android apk's asset folder. I also manually put those images into asset folder. None of them worked. I identified react native compress those images and put them into android's resource folder.
Expected behavior
Apply textures external image sources in all variants of build. Even without metro server
Actual behavior
External image textures won't apply when metro server is disconnected and release build also
Steps to reproduce the behavior
Create any shader script that apply external image.
Then in Node's uniform from give the image assets with require() tag.
Build release apk or disconnect from metro server, restart the app
The text was updated successfully, but these errors were encountered:
lakinduakash
changed the title
uniforms Texture cannot read image assets in release build (Without metro server)
uniforms Texture cannot read image assets in release build (Without metro server) - ract native
Jul 10, 2020
@lakinduakash Have you found a solution?
It's now August 2023 and I have the same issue, it's killing me I've been trying to fix this for a week now. I've tried preloading the image, manually adding it in the assets/drawable...
iOS works fine in release as well, but I can't build my Android Release
bug report
library version
"gl-react": "^4.0.1",
"gl-react-native": "^4.0.1"
npm ls gl-react gl-react-dom gl-react-native gl-react-expo # Please run and paste the output of this Petstagram@0.0.1 /home/lakinduakash/revokex/projects/pets_mobile/Petstagram ├── gl-react@4.0.1 └─┬ gl-react-native@4.0.1 └── gl-react-expo@4.0.1
Platform: Android 9.0
"react-native": "^0.62.0"
When metro server is enabled Shader is applied to the child image(uri:imgPath). But when debugger is disconnected from computer ,shader won't work.It just display empty background. Same issue in release build apk.
I assume the issue is in {inputImageTexture2: require('../assets/filters/map.png')} cannot get the image assets when metro server is disconnected. Without any external texture maps, shaders works without any issue even metro server is not running. Is there any other way to refer image assets. React native won't add those images into android apk's asset folder. I also manually put those images into asset folder. None of them worked. I identified react native compress those images and put them into android's resource folder.
Expected behavior
Apply textures external image sources in all variants of build. Even without metro server
Actual behavior
External image textures won't apply when metro server is disconnected and release build also
Steps to reproduce the behavior
require()
tag.The text was updated successfully, but these errors were encountered: