Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@

import type {Node} from 'react';

import React, {useRef, useState} from 'react';
import {RNTesterThemeContext} from 'RNTesterTheme';

import React, {useContext, useRef, useState} from 'react';
import {
Button,
DrawerLayoutAndroid,
Expand All @@ -22,6 +24,7 @@ import {
} from 'react-native';

const Drawer = () => {
const theme = useContext(RNTesterThemeContext);
const drawer = useRef<null | React$ElementRef<any>>(null);
const [drawerPosition, setDrawerPosition] = useState('left');
const changeDrawerPosition = () => {
Expand Down Expand Up @@ -52,7 +55,9 @@ const Drawer = () => {
drawerPosition={drawerPosition}
renderNavigationView={navigationView}>
<View style={styles.container}>
<Text style={styles.paragraph}>Drawer on the {drawerPosition}!</Text>
<Text style={[{color: theme.LabelColor}, styles.paragraph]}>
Drawer on the {drawerPosition}!
</Text>
<Button
title="Change Drawer Position"
onPress={() => changeDrawerPosition()}
Expand Down