Upgrading react-native 0.12 to 0.13
Breaking0.12.0 → 0.13.2Breaking7Platform1New22Fixed16Other8
BreakingUpgrade verdict
7 breaking changes and a platform requirement change.
In plain terms
- ScrollView's keyboardShouldPersistTaps defaults to false.
- Removed RCTCache on iOS.
- Remove header_mappings_dir from Podspec so that all header files are flattened when installing with CocoaPods.
- setImmediate batching: React updates (e.g. setState) scheduled with setImmediate are now batched.
Must act Top 4 of 8 that need code or config changes
Requires Node.js >=4 from 0.13.0-rc (none stated before).
Adds event-target-shim ^1.0.5.
Drops tinycolor2.
What you must change
Breaking7
ScrollView's keyboardShouldPersistTaps defaults to false.
keyboardShouldPersistTapsRemoved RCTCache on iOS.
Remove header_mappings_dir from Podspec so that all header files are flattened when installing with CocoaPods.
header_mappings_dirsetImmediate batching: React updates (e.g. setState) scheduled with setImmediate are now batched.
setStatesetImmediateNode 4.0: This is not a new requirement but we have made it more visible.
Warn when style props are not under style: make sure properties like width or backgroundColor are specified in the style prop.
stylewidthbackgroundColorFlow 0.17: Flow has been upgraded.
Platform1
End iOS Slider interaction when touches are cancelled.