beefe / react-native-picker

A Native Picker with high performance.
1.75k stars 785 forks source link

com.facebook.react.bridge.UnexpectedNativeTypeException: Value for pickerData cannot be cast from ReadableNativeMap to ReadableArray #406

Open HeMa321 opened 4 years ago

HeMa321 commented 4 years ago

这时pickDat数据'["122333","Ram Creek Sub. Add. No. Block 3 Lot 2,King Cove,Aleutians East,Alaska,us"]'

05-14 15:37:45.732 21997-22058/E/unknown:ReactNative: Exception in native call com.facebook.react.bridge.UnexpectedNativeTypeException: Value for pickerData cannot be cast from ReadableNativeMap to ReadableArray at com.facebook.react.bridge.ReadableNativeMap.checkInstance(ReadableNativeMap.java:139) at com.facebook.react.bridge.ReadableNativeMap.getNullableValue(ReadableNativeMap.java:127) at com.facebook.react.bridge.ReadableNativeMap.getArray(ReadableNativeMap.java:166) at com.beefe.picker.PickerViewModule._init(PickerViewModule.java:304) at java.lang.reflect.Method.invoke(Native Method) at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:371) at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:150) at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method) at android.os.Handler.handleCallback(Handler.java:742) at android.os.Handler.dispatchMessage(Handler.java:95) at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:26) at android.os.Looper.loop(Looper.java:157) at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:225) at java.lang.Thread.run(Thread.java:818)