React-Native 侧滑容器DrawerLayoutAndroid

感谢东方耀老师


  

import React, { Component } from 'react';
import {
  AppRegistry,
  StyleSheet,
  PixelRatio,
  Text,
  Image,
  TouchableHighlight,
  DrawerLayoutAndroid,
  ProgressBarAndroid,
  View

} from 'react-native';



class MyFirstProject extends Component {

  show(txt) {
    alert(txt);
  }
  render() {
    var nagvigationView = (
      
        i  m nagvigation
      
    );

    return (

       nagvigationView}
        // renderNavigationView={() => navigationView}
        >
        

          
          
            haha
          
        

      
      
    );
  }
}




const styles = StyleSheet.create({

  flex: {
    flex: 1,
    alignItems: 'center',
    justifyContent: 'center',
  },
  img: {
    height: 300,
    width: 300,
    borderRadius: 150,
    borderColor: '#ccc',
  },
  touchtext: {
    fontSize: 39,
    width: 300,
    alignItems: 'center',
    justifyContent: 'center',

  }


});


AppRegistry.registerComponent('MyFirstProject', () => MyFirstProject);

你可能感兴趣的:(React-Native 侧滑容器DrawerLayoutAndroid)