import React, { Component } from 'react';
import { StyleSheet, Text, View, Platform } from 'react-native';
import {
ViewPagerAndroid,
DrawerLayoutAndroid,
} from 'react-native-gesture-handler';
const Page = ({ backgroundColor, text }) =>
{text}
;
export default class Example extends Component {
render() {
if (Platform.OS !== 'android') {
return (
Sorry, this is a demo of android-only native components
);
}
const navigationView = (
I'm in the Drawer!
);
return (
navigationView}>
navigationView}>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
paddingTop: Platform.OS === 'ios' ? 20 : 0,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#F5FCFF',
},
page: {
...StyleSheet.absoluteFillObject,
alignItems: 'center',
justifyContent: 'center',
},
pageText: {
fontSize: 21,
color: 'white',
},
});