Open tanner-schmutte opened 3 weeks ago
Hey @tanner-schmutte, Could you provide a link to the documentation file you are using, or an example of code that is not working?
React Native Paper Navigation (Updated Version of Material Tab Navigation) is already comes with react-native-paper
Just Import like this
import {createMaterialBottomTabsNavigator} from "react-native-paper/react-navigation"
I'm having issues with install not import:
npm i react-native-paper/react-navigation
logs
npm ERR! code 128 npm ERR! An unknown git error occurred npm ERR! command git --no-replace-objects ls-remote ssh://git@github.com/react-native-paper/react-navigation.git npm ERR! git@github.com: Permission denied (publickey). npm ERR! fatal: Could not read from remote repository. npm ERR! npm ERR! Please make sure you have the correct access rights npm ERR! and the repository exists. npm ERR! A complete log of this run can be found in: npm ERR! /Users/tanner.schmutte/.npm/_logs/2024-06-19T23_10_01_484Z-debug-0.log
As @ronitkrshah said, react-native-paper/react-navigation
isn't another library. So instead of npm i react-native-paper/react-navigation
you should install npm i react-native-paper
and its dependencies.
Here you can find full installation guide: https://callstack.github.io/react-native-paper/docs/guides/getting-started/
Also remember to install @react-navigation/native and its dependencies.
I am trying to move from @react-navigation/material-bottom-tabs to react-native-paper/react-navigation as the docs suggest but have been unable to successfully install react-native-paper/react-navigation.
Please help!