mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-04-23 12:07:26 +08:00
[fix] ReactNative export pattern
This commit is contained in:
16
src/index.js
16
src/index.js
@@ -11,11 +11,7 @@ import TextInput from './components/TextInput'
|
||||
import Touchable from './components/Touchable'
|
||||
import View from './components/View'
|
||||
|
||||
export default React
|
||||
|
||||
export {
|
||||
StyleSheet,
|
||||
|
||||
const ReactNative = {
|
||||
// components
|
||||
Image,
|
||||
ListView,
|
||||
@@ -23,5 +19,13 @@ export {
|
||||
Text,
|
||||
TextInput,
|
||||
Touchable,
|
||||
View
|
||||
View,
|
||||
|
||||
// apis
|
||||
StyleSheet,
|
||||
|
||||
// React
|
||||
...React
|
||||
}
|
||||
|
||||
module.exports = ReactNative
|
||||
|
||||
Reference in New Issue
Block a user