Error: Looks like you forgot to wrap your root component with Provider
component from react-native-paper
.
#30
Replies: 1 comment
-
if your index.tsx or index.jsx is your root file, you need to wrap your Usage Example:
The PaperProvider component provides the theme to all the components in the framework. It also acts as a portal to components which need to be rendered at the top level. If you have another provider (such as Redux), wrap it outside PaperProvider so that the context is available to components rendered inside a Modal from the library:
|
Beta Was this translation helpful? Give feedback.
-
I'm getting the following error when I try to render the component as in the demo code:
Error: Looks like you forgot to wrap your root component with
Providercomponent from
react-native-paper.
I'm using the following libraries:
Let me know if I should provide more information.
Beta Was this translation helpful? Give feedback.
All reactions