import ViewPagerAndroid from '@react-native-community/viewpager'; import React, { Component } from 'react'; import { StyleSheet, Text, View } from 'react-native'; import { createNativeWrapper, DrawerLayoutAndroid, } from 'react-native-gesture-handler'; const WrappedViewPagerAndroid = createNativeWrapper(ViewPagerAndroid, { disallowInterruption: true, }); const Page = ({ backgroundColor, text, }: { backgroundColor: string; text: string; }) => ( {text} ); export default class Example extends Component { static platforms = ['android']; render() { const navigationView = ( I'm in the Drawer! ); return ( navigationView}> navigationView}> ); } } const styles = StyleSheet.create({ container: { flex: 1, paddingTop: 0, justifyContent: 'center', alignItems: 'center', backgroundColor: '#F5FCFF', }, page: { ...StyleSheet.absoluteFillObject, alignItems: 'center', justifyContent: 'center', }, pageText: { fontSize: 21, color: 'white', }, });