deno.land / x / sheetjs@v0.18.3 / demos / react / native.sh

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash# xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
# Create starter projectif [ ! -e SheetJS ]; then react-native init SheetJS --version="0.67.2"; fi
# Install dependenciescd SheetJS; npm i -S xlsx react-native-table-component; cd -
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 assetsif [ ! -e SheetJS/logo.png ]; then curl -O http://oss.sheetjs.com/assets/img/logo.png mv logo.png SheetJS/logo.pngfiif [ -e SheetJS/index.ios.js ]; then cp react-native.js SheetJS/index.ios.js cp react-native.js SheetJS/index.android.jselse cp react-native.js SheetJS/index.jsfi
# Linkcd SheetJS; RNFB_ANDROID_PERMISSIONS=true react-native link; cd -
sheetjs

Version Info

Tagged at
2 years ago