0.12.0
This release includes compatibility with the vast majority of React Native v0.60. React features like createContext and forwardRef have been integrated, as well as several breaking changes from upstream. In most cases, you should be able to update smoothly if not using components and APIs deprecated in React Native.
Breaking changes
createElementis renamed tounstable_createElementand is an unstable implementation detail for now (d4b9f35)- Remove prop types exports from package. These are deprecated in React Native and introduce significant DEV time performance cost. Flow types are now preferred (1ad1693)
- Remove the following exports which are all deprecated or removed in React Native core:
AsyncStorage,AlertIOS,ActionSheetIOS,CameraRoll,DatePickerAndroid,DatePickerIOS,ImageEditor,ImagePickerIOS,ImageStore,ListView,MaskedViewIOS,NavigatorIOS,NetInfo,PickerIOS,ProgressBarAndroid,ProgressViewIOS,PushNotificationsIOS,SegmentedControlIOS,Slider,SnapshotViewIOS,StatusBarIOS,SwipeableListView,ToolbarAndroid,VibrationIOS,ViewPagerAndroid,WebView. - Hydrating SSR markup is now an explicit opt-in via options passed to
AppRegistry.runApplication(afb8d3b) - Remove deprecated
accessibilityStatesprop (d57fb6e) - Remove deprecated
classNameprop and forwarding of arbitrary props fromViewandTextto the host DOM element. - Remove deprecated
accessibilityTraitsandaccessibilityComponentTypeprops (ae94551) - Remove
resizeModestatic fromImage(c35f849) - Remove
placeholderTextColorfromunstable_createElementprops. Instead, this is now exposed as astyleproperty (287251a) - Update
Switchprop types to latest from React Native (aa8593b)
New features
- The following exports have been updated to align with React Native:
Animated,Touchable,TouchableHighlight,TouchableOpacity,TouchableWithoutFeedback,FlatList,SectionList,VirtualizedList,VirtualizedSectionList. - Add support for
accessibilityRelationshipandaccessibilityStateprops (d57fb6e) - Add support for native "thin" scrollbars (e0412ac)
- Add support for
forwardedRefonTextandView; use this instead offindNodeHandleto get a reference to the native element. (React has deprecatedfindDOMNodein Strict Mode, and you can anticipate the same happening tofindNodeHandle.) - Add a
disabledprop toTextInputto support disabling the element (fc033a3) - Add
useWindowDimensionshook (df1b62c) - Add support for
Platform.isTesting(ad674e4) - Only inject the
ResponderEventPluginwhen client rendering (250ee3c)