Skip to content

Upgrading react-native 0.42 to 0.43

Breaking0.42.3 → 0.43.4Breaking11Deprecated3New22Changed19Fixed39Other31

BreakingUpgrade verdict

11 breaking changes.

  • Renames RCTShadowViews's cssNode property to yogaNode.
  • Renames YGUnitPixel to YGPoint.
  • Renames *Component props to match SectionList.
  • Renames Flow type Viewable to ViewToken.
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).

Breaking11
Renames RCTShadowViews's cssNode property to yogaNode.
RCTShadowViewscssNodeyogaNode
Renames YGUnitPixel to YGPoint.
YGUnitPixelYGPoint
Renames *Component props to match SectionList.
FlatListSectionList
Renames Flow type Viewable to ViewToken.
ViewableViewToken
Renames callFunction to jniCallFunction.
callFunctionjniCallFunction
Removes @providesModule from polyfills.
@providesModule
Switches a React feature flag so componentWillMount happens before componentWillUnmount when a child switches.
componentWillMountcomponentWillUnmount
Changes 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.
batchDidCompleteonBatchComplete
Passes the parent size to YGNodeCalculateLayout instead of the node size.
YGNodeCalculateLayout
Moves configuration to new YGConfig and passes it down to CalculateLayout.
YGConfigCalculateLayout
Deprecated3
Deprecates RCTRootView's intrinsicSize property in favour of intrinsicContentSize.
RCTRootViewintrinsicSizeintrinsicContentSize
Adds a deprecation warning for NavigationExperimental.
NavigationExperimental
Deprecates NavigationExperimental.
NavigationExperimental