Upgrading react-native 0.42 to 0.43
Breaking0.42.3 → 0.43.4Breaking11Deprecated3New22Changed19Fixed39Other31
BreakingUpgrade verdict
11 breaking changes.
In plain terms
- Renames RCTShadowViews's cssNode property to yogaNode.
- Renames YGUnitPixel to YGPoint.
- Renames *Component props to match SectionList.
- Renames Flow type Viewable to ViewToken.
Must act Top 5 of 14 that need code or config changes
Adds babel-plugin-transform-async-to-generator 6.16.0, concat-stream ^1.6.0, form-data ^2.1.1, react-devtools-core ^2.0.8, xpipe ^1.0.5.
Installs 575 packages in all (was 521).
What you must change
Breaking11
Renames RCTShadowViews's cssNode property to yogaNode.
RCTShadowViewscssNodeyogaNodeRenames YGUnitPixel to YGPoint.
YGUnitPixelYGPointRenames *Component props to match SectionList.
FlatListSectionListRenames Flow type Viewable to ViewToken.
ViewableViewTokenRenames callFunction to jniCallFunction.
callFunctionjniCallFunctionRemoves @providesModule from polyfills.
@providesModuleSwitches a React feature flag so componentWillMount happens before componentWillUnmount when a child switches.
componentWillMountcomponentWillUnmountChanges the meaning of fontScale on Android to return just font scale instead of font scale times density.
Dimensions.get('window').fontScaleDimensions.get('screen').fontScalePixelRatio.getFontScale()Only calls batchDidComplete when native calls were actually dispatched, changing the onBatchComplete contract.
batchDidCompleteonBatchCompletePasses the parent size to YGNodeCalculateLayout instead of the node size.
YGNodeCalculateLayoutMoves configuration to new YGConfig and passes it down to CalculateLayout.
YGConfigCalculateLayoutDeprecations to plan for
Deprecated3
Deprecates RCTRootView's intrinsicSize property in favour of intrinsicContentSize.
RCTRootViewintrinsicSizeintrinsicContentSizeAdds a deprecation warning for NavigationExperimental.
NavigationExperimentalDeprecates NavigationExperimental.
NavigationExperimental