zelongg

Results 5 comments of zelongg

Also encountered the same issue. commit: efc5c76ed2a3581899d3a37a9d0f290021ab532b ``` :app:bundleDebugJsAndAssets bundle: Created ReactPackager uncaught error Error: SyntaxError: /Users/gongzelong/Android/demo/ZhiHuDaily-React-Native/node_modules/react-native-viewpager/ViewPager.js: Type annotations must come before default assignments, e.g. instead of `age = 25:...

My node.js version is v6.9.1 ➜ ZhiHuDaily-React-Native git:(master) node --version v6.9.1 ➜ ZhiHuDaily-React-Native git:(master)

I change the below `_getPage(pageIdx: number, loop = false: boolean) {` to `_getPage(pageIdx: number, loop: boolean = false) {` It still doesn't work. Oh, it make the build error disappear....

Update: I tried to delete node_modules and install everything again. And it worked. ![image](https://cloud.githubusercontent.com/assets/21305437/23123739/a24b72a2-f7a4-11e6-9b45-66a38243ef83.png) Here is my reference. https://github.com/xotahal/react-native-material-ui/issues/26

Plus, I also add the lines in 'ZhiHuDaily-React-Native/android/build.gradle'. ``` allprojects { repositories { mavenLocal() jcenter() maven { // All of React Native (JS, Android binaries) is installed from npm url...