React Native & react-native-web-player & React Native for Web
React Native & react-native-web-player & React Native for Web
https://github.com/dabbott/react-native-web-player
https://dabbott.github.io/react-native-web-player/
import React, { Component } from 'react'
import {
AppRegistry,
StyleSheet,
Text,
View,
} from 'react-native'
class App extends Component {
render() {
return (
<View style={styles.container}>
<Text style={styles.welcome}>
Welcome to React Native!
</Text>
<View style={{height: 100, width: "100%" }}>
<View style={{flex: 1, backgroundColor: 'powderblue'}} />
<View style={{flex: 2, backgroundColor: 'skyblue'}} />
<View style={{flex: 3, backgroundColor: 'steelblue'}} />
</View>
</View>
)
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#F5FCFF',
},
welcome: {
fontSize: 20,
textAlign: 'center',
margin: 10,
},
})
// no need below line if use react-native -create-app
AppRegistry.registerComponent('App', () => App)
https://github.com/necolas/react-native-web
https://necolas.github.io/react-native-web/storybook/
https://necolas.github.io/react-native-web/examples/
https://bbs.reactnative.cn/topic/3727/新加坡-grab招react-native开发/5
本文首发于博客园,作者:xgqfrms,原文链接:https://www.cnblogs.com/xgqfrms/p/10769157.html
未经授权禁止转载,违者必究!