Open yhojann-cl opened 2 months ago
Hey, did you installed npm install react-native-safe-area-context
?
Did you try to add the SafeAreaProvider
?
<SafeAreaProvider>
<PaperProvider>
<Appbar.Header>
<Appbar.BackAction onPress={() => {}} />
<Appbar.Content title="Title" />
<Appbar.Action icon="magnify" onPress={() => {}} />
<Appbar.Action icon="dots-vertical" onPress={() => {}} />
</Appbar.Header>
</PaperProvider>
</SafeAreaProvider>
Yes, the package react-native-safe-area-context
and use a safe area component but have a deprecated components and does not work all. Why not include by default the safe area and safe area context by default in the package if it is required to works?
Have a single example using React Native Papper:
When run says:
I found a manually patch to solve problem installing
react-native-safe-area-context
package: https://github.com/react-navigation/react-navigation/issues/8964But when compile says:
The
Appbar.Header
component require a deprecated non preinstalled library to work?