mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-06-02 18:41:17 +00:00
@@ -1,5 +1,8 @@
|
|||||||
# Getting started
|
# Getting started
|
||||||
|
|
||||||
|
It is recommended that your application provide a `Promise` and `Array.from`
|
||||||
|
polyfill.
|
||||||
|
|
||||||
## Webpack and Babel
|
## Webpack and Babel
|
||||||
|
|
||||||
[Webpack](webpack.js.org) is a popular build tool for web apps. Below is an
|
[Webpack](webpack.js.org) is a popular build tool for web apps. Below is an
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ const NativeMethodsMixin = {
|
|||||||
setNativeProps(nativeProps: Object) {
|
setNativeProps(nativeProps: Object) {
|
||||||
// DOM state
|
// DOM state
|
||||||
const node = findNodeHandle(this);
|
const node = findNodeHandle(this);
|
||||||
const classList = [...node.classList];
|
const classList = Array.prototype.slice.call(node.classList);
|
||||||
|
|
||||||
const domProps = createDOMProps(nativeProps, style =>
|
const domProps = createDOMProps(nativeProps, style =>
|
||||||
StyleRegistry.resolveStateful(style, classList)
|
StyleRegistry.resolveStateful(style, classList)
|
||||||
|
|||||||
Reference in New Issue
Block a user