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
createElement
is renamed tounstable_createElement
and 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
accessibilityStates
prop (d57fb6e) - Remove deprecated
className
prop and forwarding of arbitrary props fromView
andText
to the host DOM element. - Remove deprecated
accessibilityTraits
andaccessibilityComponentType
props (ae94551) - Remove
resizeMode
static fromImage
(c35f849) - Remove
placeholderTextColor
fromunstable_createElement
props. Instead, this is now exposed as astyle
property (287251a) - Update
Switch
prop 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
accessibilityRelationship
andaccessibilityState
props (d57fb6e) - Add support for native "thin" scrollbars (e0412ac)
- Add support for
forwardedRef
onText
andView
; use this instead offindNodeHandle
to get a reference to the native element. (React has deprecatedfindDOMNode
in Strict Mode, and you can anticipate the same happening tofindNodeHandle
.) - Add a
disabled
prop toTextInput
to support disabling the element (fc033a3) - Add
useWindowDimensions
hook (df1b62c) - Add support for
Platform.isTesting
(ad674e4) - Only inject the
ResponderEventPlugin
when client rendering (250ee3c)