2017-09-12 20:02:06 +00:00
|
|
|
#!/bin/bash
|
2017-09-24 23:40:09 +00:00
|
|
|
# xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
|
2022-02-05 13:59:25 +00:00
|
|
|
|
|
|
|
# Create starter project
|
|
|
|
if [ ! -e SheetJS ]; then react-native init SheetJS --version="0.67.2"; fi
|
|
|
|
|
|
|
|
# Install dependencies
|
2022-04-14 07:27:38 +00:00
|
|
|
cd SheetJS; npm i -S https://cdn.sheetjs.com/xlsx-latest/xlsx-latest.tgz react-native-table-component; cd -
|
2022-02-05 13:59:25 +00:00
|
|
|
|
|
|
|
cd SheetJS; npm i -S react-native-file-access@2.x; cd -
|
|
|
|
# cd SheetJS; npm i -S react-native-fs; cd -
|
|
|
|
# cd SheetJS; npm i -S react-native-fetch-blob; cd -
|
|
|
|
|
|
|
|
# Copy demo assets
|
2017-09-12 20:02:06 +00:00
|
|
|
if [ ! -e SheetJS/logo.png ]; then
|
|
|
|
curl -O http://oss.sheetjs.com/assets/img/logo.png
|
|
|
|
mv logo.png SheetJS/logo.png
|
|
|
|
fi
|
2017-10-27 16:25:54 +00:00
|
|
|
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
|
2022-02-05 13:59:25 +00:00
|
|
|
|
|
|
|
# Link
|
|
|
|
cd SheetJS; RNFB_ANDROID_PERMISSIONS=true react-native link; cd -
|