diff --git a/native.sh b/native.sh index c903cbb..b4f642a 100755 --- a/native.sh +++ b/native.sh @@ -3,15 +3,19 @@ if [ ! -e SheetJS ]; then react-native init SheetJS cd SheetJS - npm i -S xlsx react react-native react-native-table-component react-native-fs + npm i -S xlsx react-native-table-component react-native-fs cd - fi if [ ! -e SheetJS/logo.png ]; then curl -O http://oss.sheetjs.com/assets/img/logo.png mv logo.png SheetJS/logo.png fi -cp react-native.js SheetJS/index.ios.js -cp react-native.js SheetJS/index.android.js +if [ -e SheetJS/index.ios.js ]; then + cp react-native.js SheetJS/index.ios.js + cp react-native.js SheetJS/index.android.js +else + cp react-native.js SheetJS/index.js +fi cd SheetJS; RNFB_ANDROID_PERMISSIONS=true react-native link cd -;