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

WritableMap fromBundle cannot handle array

Open Matthew-C opened this issue 11 years ago • 4 comments

Arguments.java line 122: value.getClass().isArray() always return false cause ArrayList is not array!

Note bundle.putStringArray takes an ArrayList as parameter so this code never works.

Also is there a way to allow user to directly put JSONObject as initial properties?

Matthew-C avatar Nov 03 '15 00:11 Matthew-C

You should convert ArrayList to Array

yychun1217 avatar Nov 04 '15 15:11 yychun1217

@Matthew-C Your going to have to convert the array to a WritableArray.

christopherdro avatar Mar 20 '16 16:03 christopherdro

@facebook-github-bot answered

christopherdro avatar Apr 10 '16 18:04 christopherdro

Closing this issue as @christopherdro says the question asked has been answered. Please help us by asking questions on StackOverflow. StackOverflow is amazing for Q&A: it has a reputation system, voting, the ability to mark a question as answered. Because of the reputation system it is likely the community will see and answer your question there. This also helps us use the GitHub bug tracker for bugs only.

facebook-github-bot avatar Apr 10 '16 18:04 facebook-github-bot