react-native-bootsplash: pre-build no longer works after installing bootsplash - expo SDK51
Before submitting a new issue
- I tested using the latest version of the library, as the bug might be already fixed.
- I tested using a supported version of react native.
- I checked for possible duplicate issues, with possible answers.
Bug summary
command used:
npx react-native generate-bootsplash assets/icon.png --platforms=android,ios --background=F5FCFF --logo-width=100 --assets-output=assets/bootsplash --flavor=main
i have followed all other instructions…
package json
"expo": { "autolinking": { "exclude": [ "expo-splash-screen" ] } }
app config:
["react-native-bootsplash", { assetsDir: "assets/bootsplash" }],
Resuts when running prebuild
IOS
✔ Would you like to proceed? … yes
✔ Cleared ios code
✔ Created native directory
✔ Updated package.json | no changes
✖ Prebuild failed
Error: [ios.dangerous]: withIosDangerousBaseMod: ENOENT: no such file or directory, lstat '/Users/ayo/Desktop/Code/honeymoon/apps/mobile/assets/bootsplash/ios/BootSplash.storyboard'
ANDROID:
✔ Cleared android code
✔ Created native directory
✔ Updated package.json | no changes
✖ Prebuild failed
Error: [android.dangerous]: withAndroidDangerousBaseMod: ENOENT: no such file or directory, scandir '/Users/ayo/Desktop/Code/honeymoon/apps/mobile/assets/bootsplash/android'
Error: [android.dangerous]: withAndroidDangerousBaseMod: ENOENT: no such file or directory, scandir '/Users/ayo/Desktop/Code/honeymoon/apps/mobile/assets/bootsplash/android'
at Object.readdirSync (node:fs:1527:3)
at Object.readDir (/Users/ayo/Desktop/Code/honeymoon/node_modules/react-native-bootsplash/dist/commonjs/generate.js:136:37)
the CLi does not generate the ios and android files within the /bootsplash folder.
Library version
6.1.1
Environment info
shell
System:
OS: macOS 14.4.1
CPU: (8) arm64 Apple M1 Pro
Memory: 92.80 MB / 16.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 18.17.0
path: ~/.nvm/versions/node/v18.17.0/bin/node
Yarn:
version: 1.22.21
path: ~/.nvm/versions/node/v18.17.0/bin/yarn
npm:
version: 9.6.7
path: ~/.nvm/versions/node/v18.17.0/bin/npm
Watchman: Not Found
Managers:
CocoaPods:
version: 1.15.2
path: /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 23.4
- iOS 17.4
- macOS 14.4
- tvOS 17.4
- visionOS 1.1
- watchOS 10.4
Android SDK:
API Levels:
- "32"
- "34"
Build Tools:
- 30.0.3
- 33.0.0
- 33.0.1
- 34.0.0
- 35.0.0
System Images:
- android-34 | Google Play ARM 64 v8a
Android NDK: Not Found
IDEs:
Android Studio: 2023.2 AI-232.10227.8.2321.11479570
Xcode:
version: 15.3/15E204a
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.10
path: /usr/bin/javac
Ruby:
version: 2.6.10
path: /usr/bin/ruby
npmPackages:
"@react-native-community/cli": Not Found
react:
installed: 18.3.1
wanted: 18.2.0
react-native: Not Found
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: false
iOS:
hermesEnabled: Not found
newArchEnabled: false
Steps to reproduce
- … install a library into any expo project
- …
Reproducible sample code
follow basic instructions
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 16 (5 by maintainers)
@AyoCodess https://github.com/zoontek/react-native-bootsplash/issues/595#issuecomment-2254211269
The Expo documentation really needs to be fixed here, as having let’s say
src/components/android/stuff.tsxwill also be omitted from your EAS build 😅@AyoCodess Actually, I saw that this has been merged / fixed. Fortunately