-
Notifications
You must be signed in to change notification settings - Fork 24.8k
Description
Please provide all the information requested. Issues that do not follow this format are likely to stall.
Description
Please provide a clear and concise description of what the bug is. Include screenshots if needed.
Please test using the latest React Native release to make sure your issue has not already been fixed: https://reactnative.dev/docs/upgrading.html
React Native version:
info Fetching system and libraries information...
System:
OS: macOS 11.3.1
CPU: (8) x64 Apple M1
Memory: 48.34 MB / 8.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 14.16.0 - ~/.nvm/versions/node/v14.16.0/bin/node
Yarn: Not Found
npm: 6.14.11 - ~/.nvm/versions/node/v14.16.0/bin/npm
Watchman: 4.9.0 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.10.1 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 14.5, DriverKit 20.4, macOS 11.3, tvOS 14.5, watchOS 7.4
Android SDK:
API Levels: 30
Build Tools: 30.0.3
System Images: android-29 | Google APIs Intel x86 Atom, android-30 | Google APIs Intel x86 Atom, android-30 | Google Play ARM 64 v8a
Android NDK: Not Found
IDEs:
Android Studio: 4.1 AI-201.8743.12.41.7042882
Xcode: 12.5/12E262 - /usr/bin/xcodebuild
Languages:
Java: 1.8.0_282 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.2 => 17.0.2
react-native: ~0.63.4 => 0.63.4
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Steps To Reproduce
Provide a detailed list of steps that reproduce the issue.
- build archive with Xcode or test flight
- look at image being used in the way below
- <Image
source={require('../assets/images/xyz.png')}
style={styles.img}
resizeMode="cover"
/> - Image not rendered
Expected Results
Image being rendered
Snack, code example, screenshot, or link to a repository:
Using react-native v0.63.4, and all the local image load fine in development mode
<Image
source={require('../assets/images/xyz.png')}
style={styles.img}
resizeMode="cover"
/>
but once we built it in release mode or test flight, all the image loaded with require is not being rendered.
What I have found so far:
Doesn't seem to be #29268, since I am using 0.63.4
Examined the IPA file, and it does contain all the images
Thanks in advance!