Open
Description
When using edge to edge mode TrueSheet does not handle the keyboard state in any way
I also tried using the react-native-keyboard-controller add-on library for keyboard handling but it doesn't work inside TrueSheet
env
- new arch
- expo 52
- react native 0.76.6
Example to reproduce
import { Button, View, Text, TextInput } from 'react-native';
import { TrueSheet } from '@lodev09/react-native-true-sheet';
import { useRef } from 'react';
export default function App() {
const sheet = useRef<TrueSheet>(null);
return (
<View
style={{
paddingTop: 100,
paddingHorizontal: 20,
backgroundColor: 'white',
flex: 1,
}}
>
<Button title="Open Sheet" onPress={() => sheet.current?.present()} />
<TrueSheet ref={sheet} cornerRadius={25} edgeToEdge>
<View style={{ height: 100, backgroundColor: 'white', padding: 20 }}>
<Text>Input</Text>
<TextInput
placeholder="placeholder"
style={{ borderWidth: 1, height: 50 }}
/>
</View>
</TrueSheet>
</View>
);
}
screenshots
disabled | enabled |
---|---|
![]() |
![]() |
Metadata
Metadata
Assignees
Labels
No labels