Skip to content

Instantly share code, notes, and snippets.

View ArthurInTheShell's full-sized avatar
👋

Junhao Chen ArthurInTheShell

👋
View GitHub Profile
@ArthurInTheShell
ArthurInTheShell / gist:577ce5a07d66e5b2ab430eb1697dbb18
Created June 7, 2018 18:27
Example of extending a Navigator in React Native
https://snack.expo.io/@notbrent/extending-a-switch-navigator
In case you don't see the vital line 53, [flex:1] is very important
Thanks for Brent Vaten for this code.
@ArthurInTheShell
ArthurInTheShell / gist:af85e030631c63a214c1497601078339
Created June 7, 2018 20:56
Fix some dependency problems in react native
watchman watch-del-all
npm cache clean --force && npm install
clean the cache and reinstall all the packages
@ArthurInTheShell
ArthurInTheShell / gist:0d7f5e4219bbb9d5948391a57bcc4176
Last active June 13, 2018 20:52
clean react native android build
cd android && ./gradlew clean && cd ../
@ArthurInTheShell
ArthurInTheShell / gist:acf0ce50108df2ea90a3b8b643f31c0e
Created June 22, 2018 18:25
Keyboard avoiding view for android
android:windowSoftInputMode="adjustPan"
behaviour on android should be null to avoid conflicts
./gradlew assembleRelease
adb install (apk) [under directory sdk/platform-tools]
new Date.toGMTString()