中文 
React Web A library for building web apps with React Native compatible API.
Getting Started
Install
npm install --save react-web
Add Webpack configuration
Inside your webpack configuration, alias the react-native
package to the react-web
package:
// webpack.config.js moduleexports = resolve: alias: 'react-native': 'react-web'
Write your application with React Native API
;; { return <View style=stylesbox> <Text style=stylestext>Hello world!</Text> </View> ; } const styles = StyleSheet; AppRegistry; if PlatformOS === 'web' AppRegistry;
React Native Compatible
- ActivityIndicator
- ART
- Button
- CheckBox
- FlatList
- Image
- ImageBackground
- KeyboardAvoidingView
- ListView
- Modal
- Picker
- ProgressBar
- RefreshControl
- SafeAreaView
- ScrollView
- SectionList
- Slider
- StatusBar
- Switch
- Text
- TextInput
- Touchable
- TouchableHighlight
- TouchableNativeFeedback
- TouchableOpacity
- TouchableWithoutFeedback
- View
- VirtualizedList
- WebView
- findNodeHandle
- AccessibilityInfo
- Alert
- Animated
- AppRegistry
- AppState
- AsyncStorage
- BackHandler
- Clipboard
- Dimensions
- Easing
- Geolocation
- I18nManager
- InteractionManager
- Keyboard
- LayoutAnimation
- Linking
- NetInfo
- PanResponder
- PixelRatio
- Platform
- Settings
- StyleSheet
- UIManager
- Vibration
- processColor
- NativeModules
- ColorPropType
- EdgeInsetsPropType
- PointPropType
- ViewPropTypes
Project Dependencies
License
React Web is BSD licensed.