Skip to content

0.5.0

Compare
Choose a tag to compare
@necolas necolas released this 20 Feb 00:07
· 905 commits to master since this release

New features for styling LTR/RTL applications. Improvements to mouse support in the Responder Event system. Relicensed under the MIT license to match the relicensing of React Native.

Breaking changes

  • Potentially breaking change for web-only apps depending on bugs in the Responder Event System that have been fixed in this release. The ResponderEventPlugin no longer extracts any mouse{move,up} events unless a press is active, and no longer extracts any events triggered by the middle/wheel/right button. (9ee89bc)

New features

  • StyleSheet supports new style properties and values that automatically account for the writing direction (as introduced in React Native 0.51.0), e.g., margin{End,Start} and textAlign: "end" | "start". (b754776)
  • I18nManager supports doLeftAndRightSwapInRTL and swapLeftAndRightInRTL(swap: boolean) to query and control the BiDi-flipping of left/right properties and values. For example, you may choose to use end to position elements relative to the writing direction, and then disable left/right swapping in RTL so that left will always be left. (92794cd)
  • TextInput now includes arrow keys in onKeyPress #791. (73b459e)

Fixes

  • Account for scroll offsets in measure and measureInWindow instance methods #702. (399f465)
  • Touchable press events are not triggered on right-click #719. (9ee89bc)
  • PanResponder only fires mouse{move,up} events when a press is active #701. (9ee89bc)
  • onResponderGrant is not fired twice on touch devices #802. (893963a)
  • Image support for base64 SVG data. (31db333)
  • Image updates to source are correctly rendered if the initial source value was undefined #811. (748b2d0)
  • TextInput has correct default font styles. (b28cbbb)
  • Text supports fontVariant style #824. (6d90818)
  • StyleSheet accepts space-evenly value for justifyContent. (7265736)
  • Style flex properties can be set with setNativeProps. (00c9dc4)
  • New development warning for bad style values that include !important. (9fe089c)
  • babel-plugin-react-native-web only rewrites import paths for known exports #822. (a53372c)