github necolas/react-native-web 0.12.0

latest releases: 0.19.13, 0.19.12, 0.19.11...
4 years ago

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 to unstable_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 from View and Text to the host DOM element.
  • Remove deprecated accessibilityTraits and accessibilityComponentType props (ae94551)
  • Remove resizeMode static from Image (c35f849)
  • Remove placeholderTextColor from unstable_createElement props. Instead, this is now exposed as a style 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 and accessibilityState props (d57fb6e)
  • Add support for native "thin" scrollbars (e0412ac)
  • Add support for forwardedRef on Text and View; use this instead of findNodeHandle to get a reference to the native element. (React has deprecated findDOMNode in Strict Mode, and you can anticipate the same happening to findNodeHandle.)
  • Add a disabled prop to TextInput to support disabling the element (fc033a3)
  • Add useWindowDimensions hook (df1b62c)
  • Add support for Platform.isTesting (ad674e4)
  • Only inject the ResponderEventPlugin when client rendering (250ee3c)

Fixes

  • Fix support for disabling scroll in ScrollView for touch interactions (e22f0be)
  • Fix support for autoComplete on TextInput (b10711b)
  • Remove UA default margin from TextInput (5334a4f)

Don't miss a new react-native-web release

NewReleases is sending notifications on new releases.