mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
a1c5e884ef
Summary: In previous implementation, `setNativeProps` was called before `render`. These two methods can change value of `selectedIndex` and it matters in which order they arrive in native. This was fine in Paper because 1st selectedIndex is set from `setNativeProps` with wrong value and then correct value comes from props. However in Fabric, 1st selectedIndex comes from props (this is the correct one), and 2nd comes from command which has the incorrect value. changelog: [internal] Reviewed By: TheSavior Differential Revision: D18240118 fbshipit-source-id: dca897306d3e858b9175b2f81356c76f5a0f79e2