0.8.0
This release provides compatibility with the vast majority of React Native v0.55.
Breaking changes
- Use of the responder events on a link element will now prevent the browser's default click behavior #970. (c336995)
- The props passed to ReactDOM are now whitelisted #898. (e0f010d)
- A jest preset is included in the
react-native-web
package and should be used in place of the previous snapshot serializer. (8f0c39c) StyleSheet.hairlineWidth
is now always1
due to browser rounding errors. (3f8624e)Image
is no longer draggable by default. (0eae7be)Image
decoding is async when possible, no longer usesrequestIdleCallback
internally #764. (b8f54f6)Linking
API updates the application document's URL and supports deep-links. (0ee3310)- Export basic stubs for platform-specific modules that may be imported (but not rendered / called) in files running on web. (cf43ffd)
New features
Image
supportsblurRadius
andtintColor
, as well as correctly applying shadows to image pixels. (3153cd8)Text
support fortextDecoration{Color,Style}
styles. (f62ed22)Share
support (using WebShare API.) (10407f3)SwipeableFlatList
support. (b299eb6)SwipeableListView
support. (b299eb6)SectionList
support. (377f23f)FlatList
support. (fc0b814)ScrollView
supportsstickyHeaderIndices
#434. (bb66639)DeviceInfo
basic support. (206a236)LayoutAnimation
basic support. (cb545b0)NativeEventEmitter
support. (ea744fe)Alert
API stub. (19b356a).Animated
update. (f254c8e)ListView
update. (5fcb36f)babel-plugin-react-native-web
can be configured to rewrite paths to either the CommonJS or ESModule exports #961. (026a92f)
Fixes
- Shadow style props are resolved as per React Native. (a40521f and da38e87)
Clipboard
preserves line breaks in original source #979. (14f7dfd)Image
implementsresizeMode=center|repeat
as per React Native. (9fb818c)NativeModules
includesUIManager
property. (bfaca05)UIManager
measurement tasks don't block the main thread. (b4e3427)Image
layout in Firefox. (a82cfbe)Image
loading callbacks are correctly called when rendering an image assumed to be in the browser cache. (d5c6b98)Image
doesn't throw error when loading an empty string source #962. (16b2fb9)- Add
target
property toonLayout
event object. (0816c40) TextInput
allowsnumbers-and-punctuation
keyboardType. (2756ab4)InteractionManager
basic support improvements. (f684a36)ScrollView
is scrollable when horizontal and combined withRefreshControl
. (c003604)AppState
doesn't throw an error formemoryWarning
event. (4bc16fa)Vibration
includes a default pattern. (2237777)ImageBackground
now works with<Text>
children. (6a22528)processColor
is now compatible with React Native. (ff5a928)- All CommonJS exports in the package can be imported without adding
.default
to the require statement. (61bf7e7) - Fix issues related to webpack bundling of modules mixing
import
andmodule.exports
. (e317062)