Skip to content

Upgrading react-native 0.3 to 0.4

Breaking0.3.11 → 0.4.4Breaking2New4Changed2Fixed9

BreakingUpgrade verdict

2 breaking changes.

  • Code that read a component's native handle from a ref must switch to the new helper function.
  • Anyone building iOS native component wrappers by hand should use the supported helper instead.
2 items need code or config changes

Adds graceful-fs ^3.0.6, promise ^7.0.0.

Drops stacktrace-parser.

Installs 179 packages in all (was 134).

Breaking2
Removes ref.getNativeHandle() and ref.getNodeHandle(); use React.findNodeHandle(ref) instead.
ref.getNativeHandle()ref.getNodeHandle()React.findNodeHandle()
Replaces undocumented createReactIOSNativeComponentClass and ReactIOSViewAttributes with requireNativeComponent for iOS wrappers.
createReactIOSNativeComponentClassReactIOSViewAttributesrequireNativeComponent