react-native-viewpager icon indicating copy to clipboard operation
react-native-viewpager copied to clipboard

运行时候报错

Open kliuj opened this issue 8 years ago • 4 comments

SyntaxError: D:/GIT/Tour/RN_Product/tour/node_modules/react-native-viewpager/ViewPager.js: Type annotations must come before default assignments, e.g. instead of age = 25: number use age: number = 25 (238:41) 238 | _getPage(pageIdx: number, loop =false: boolean) {

kliuj avatar Sep 26 '16 06:09 kliuj

第238 行改成 _getPage(pageIdx: number, boolean:loop = false) {

1148030615 avatar Sep 26 '16 09:09 1148030615

貌似这么改会出错,改成这样吧 _getPage(pageIdx: number,loop = false) {

1148030615 avatar Sep 26 '16 09:09 1148030615

@1148030615 我发现如上的改动会引起新的问题,怎么解决呀? qq20161027-0 2x

xubuhang avatar Oct 27 '16 02:10 xubuhang

_getPage(pageIdx: number, loop : boolean = false) 我是改成这样可以运行

kliuj avatar Oct 27 '16 03:10 kliuj