tuanpq / react-native-splash-screen

Implement React Native Splash Screen

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-native-splash-screen

Implement React Native Splash Screen using react-native-splash-screen.

Screenshot

alt text

Setup development environment:

https://reactnative.dev/docs/environment-setup

iOS

Run on simulator

  1. $npm install
  2. $npx pod-install ios
  3. $npx react-native start
  4. Open a seperate Terminal and run $npx react-native run-ios

Android

Run on Android simulator

  1. $npm install
  2. $npx react-native start
  3. $cd android
  4. $./gradlew assembleDebug --warning-mode all
  5. Open a seperate Terminal and run $npx react-native run-android

Build debug apk

  1. $mkdir android/app/assets
  2. $mkdir android/app/src/main/assets
  3. $npx react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res
  4. $cd android/
  5. $./gradlew assembleDebug
  6. $cd app/build/outputs/apk/debug

About

Implement React Native Splash Screen

License:MIT License


Languages

Language:Java 44.7%Language:Objective-C 31.6%Language:JavaScript 12.8%Language:Ruby 6.7%Language:Starlark 4.2%