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

Unexpected Behavior When Pushing Screen With Second Screen Object in passProps

Open anthonybarsotti opened this issue 8 years ago • 2 comments

I have three screens, screen A pushes screen B onto the stack and includes an object definition for screen C in B's passProps param. Within screen C's passProps param I'm including an array of action creators (these are specific to screen A so I'm passing them here). Before I perform the push to Screen C in Screen B I'm logging out the passProps of Screen C and everything looks fine. However, within Screen C's constructor, the array of action creators has been changed to an array of nulls. If I pass any other data types within that array like strings or numbers they stay untouched but as soon as I use functions they get converted to null when screen C is instantiated.

anthonybarsotti avatar Apr 16 '18 22:04 anthonybarsotti

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe the issue is still relevant, please test on the latest version and report back. Thank you for your contributions.

stale[bot] avatar Jun 02 '18 02:06 stale[bot]

The issue has been closed for inactivity.

stale[bot] avatar Jun 09 '18 03:06 stale[bot]