ShoppingScreen.js 608 B

123456789101112131415161718192021222324252627
  1. import React, {Component} from 'react';
  2. import CommonTitleBar from '../views/CommonTitleBar';
  3. import {StyleSheet, View, WebView,} from 'react-native';
  4. export default class ShoppingScreen extends Component {
  5. render() {
  6. return (
  7. <View style={styles.container}>
  8. <CommonTitleBar nav={this.props.navigation} title={"购物"}/>
  9. <WebView
  10. source={{uri: 'https://m.jd.com'}}
  11. style={styles.webView}
  12. />
  13. </View>
  14. );
  15. }
  16. }
  17. const styles = StyleSheet.create({
  18. container: {
  19. flex: 1,
  20. flexDirection: 'column',
  21. },
  22. webView: {
  23. flex: 1,
  24. }
  25. });