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
The attachment image with require() is not displayed on release mode.
It works dev mode only.
I think React Native's require() doesn't works properly in ios native code.
Version info
react-native@0.73.6
@notifee/react-native@7.8.2
Temporary workaround
It needs to change to absolute path. The absolute path is started assets.
This source file is located src/example.ts for example.
and image file is located src/assets/example.png.
// It works only dev mode.{url: require("./assets/example.png"),typeHint: "public.png",}// You must change to absolute path conditionally if you want to use dev and release both.{url: __DEV__===true ? require("./assets/example.png") : "assets/src/assets/example.png",typeHint: "public.png",}
Hello 👋, to help manage issues we automatically close stale issues.
This issue has been automatically marked as stale because it has not had activity for quite some time.Has this issue been fixed, or does it still require attention?
This issue will be closed in 15 days if no further activity occurs.
Summary
The attachment image with
require()
is not displayed on release mode.It works dev mode only.
I think React Native's
require()
doesn't works properly in ios native code.Version info
Temporary workaround
It needs to change to absolute path. The absolute path is started
assets
.This source file is located
src/example.ts
for example.and image file is located
src/assets/example.png
.Related issue
#790
The text was updated successfully, but these errors were encountered: