1#!/bin/bash 2 3# TODO: remove once we're confident about dropping SDK 42 support 4REACT_NATIVE_VERSION=$(node --print "require('react-native/package.json').version") 5if ! [[ "$REACT_NATIVE_VERSION" =~ ^0\.63\.[0-9]+$ ]]; then 6 echo -e "\033[1;33mWarning: bundles made with this version of React Native ($REACT_NATIVE_VERSION) will not work in SDK 42.\033[0m" 7fi 8 9# iOS 10 11npx react-native bundle \ 12 --platform ios \ 13 --dev false \ 14 --entry-file index.js \ 15 --bundle-output ios/main.jsbundle \ 16 --assets-dest ios 17 18# Android 19 20npx react-native bundle \ 21 --platform android \ 22 --dev false \ 23 --entry-file index.js \ 24 --bundle-output android/src/debug/assets/expo_dev_launcher_android.bundle \ 25 --assets-dest android/src/debug/res 26 27 28 29