[add] export a 'core' module

This commit is contained in:
Nicolas Gallagher
2016-08-03 13:16:09 -07:00
parent e3450ed26c
commit 5c8cdd7742
4 changed files with 53 additions and 11 deletions

View File

@@ -16,6 +16,22 @@ module.exports = {
}
```
The `react-native-web` package also includes a `core` module that exports only
`ReactNative`, `Image`, `StyleSheet`, `Text`, `TextInput`, and `View`.
```js
// webpack.config.js
module.exports = {
// ...other configuration
resolve: {
alias: {
'react-native': 'react-native-web/core'
}
}
}
```
## Client-side rendering
Rendering without using the `AppRegistry`: