Nativebase: Picker.item unexpected character error ?

Created on 22 Dec 2016  Â·  2Comments  Â·  Source: GeekyAnts/NativeBase

NativeBase Picker example not working..

exactly copy example...

but error occur when i run

const Item = Picker.Item;​ <--

[Message] unexpected character ...

how to solve it ?
and i don't know how to make sub component
(anyone help me... pickerContainer source want.. m.m)

i use
react 15.4.1
"native-base": "^0.5.18",
"react-native": "^0.39.2", ...
"react-native-router-flux": "^3.36.0",
macOS XCode 8.1

thanks NativeBase~

Most helpful comment

@ddpdev Seems like there is a space after const Item = Picker.Item;​
Exclude it and that would work

All 2 comments

@ddpdev Seems like there is a space after const Item = Picker.Item;​
Exclude it and that would work

thanks @SupriyaKalghatgi ^^;

Was this page helpful?
0 / 5 - 0 ratings