RN 42 - Expected array with count 16, but count is 2
Trying to integrate React-Navigation with RN42 project. When I add any navigator the apps stop due to this error:

@fabriciovergal I also have the same issue after upgrading RN to 0.42, but that is even before integrating react-navigation. Just curious, are you using react-native-router-flux at all?
I ask because I am using it, and it might be from it but I am not 100% sure.
Also, please let us know if you figure out what it is :)
No, react-navigation is the only navigation lib in my boilerplate project.
@MovingGifts Same issue, I'm using react-native-router-flux and when not using it the error disappears.
I can confirm that it happens on 0.42.0 and above. Hopefully we can get it working for the next release.
@abeauvois We'll just have to wait until grabbou gets it to work with his team. @grabbou did you mean next release of RN as in 0.43, so in about a month?
I had this same error, but after stopping the packager, and rebuilding, the error went away.
same issue here, restarting packager doesnt help though ..
@MovingGifts I think @grabbou is referring to the next release of react-navigation.
@matthamil Yeah, I wasn't sure 100% since they both get new releases. @grabbou Can you please update this thread to let us know when it's resolved?
There is work in progress on next release, no dates yet. I have my list to do as well as others, I guess this week we will ship a new updated version.
Was running through the same issue after trying to update react-native with a simple npm install. Following the upgrading guide from react-native documentation and the react-native-git-upgrade module solved the problem.
I was also facing the same issue.
npm install -g react-native-git-upgrade
react-native-git-upgrade
rm -rf node_modules/
npm install
All this solved the issue.
Thanks! @raphaelameaume
So I am having a workshop tomorrow in SF and so, I am quite busy over here. But I'll have more time during the weekend and will try to get back to you and resolve that issue.
On Wed, 8 Mar 2017 at 21:36 Chetan Garg [email protected] wrote:
I was also facing the same issue. npm install -g react-native-git-upgrade react-native-git-upgrade rm -rf node_modules/ npm install All this solved the issue. Thanks! @raphaelameaume https://github.com/raphaelameaume
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/react-community/react-navigation/issues/550#issuecomment-285259321, or mute the thread https://github.com/notifications/unsubscribe-auth/ACWcxpEPOaHonGE34xwu-y2eToDny516ks5rj4_QgaJpZM4MRSPc .
Having the same problem. @cgarg solution not working for me :(
I also encountered this question, who knows why ?
@cgarg Solution also did not work for me.
I had to give up and just do react-native upgrade to fix it for me.
Edit: Still getting it on occasion regardless.
I had to downgrade to 0.41.0
If you clear out your native build and go again, it should work: http://stackoverflow.com/questions/42765165/react-native-0-42-expected-array-with-count-16
@ericvicenti how do you clear the native build?