0.5.0
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 anymouse{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}
andtextAlign: "end" | "start"
. (b754776)I18nManager
supportsdoLeftAndRightSwapInRTL
andswapLeftAndRightInRTL(swap: boolean)
to query and control the BiDi-flipping of left/right properties and values. For example, you may choose to useend
to position elements relative to the writing direction, and then disable left/right swapping in RTL so thatleft
will always be left. (92794cd)TextInput
now includes arrow keys inonKeyPress
#791. (73b459e)
Fixes
- Account for scroll offsets in
measure
andmeasureInWindow
instance methods #702. (399f465) Touchable
press events are not triggered on right-click #719. (9ee89bc)PanResponder
only firesmouse{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 tosource
are correctly rendered if the initialsource
value wasundefined
#811. (748b2d0)TextInput
has correct default font styles. (b28cbbb)Text
supportsfontVariant
style #824. (6d90818)StyleSheet
acceptsspace-evenly
value forjustifyContent
. (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)