-
-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invariant Violation: requireNativeComponent: "LEGACY_RNCViewPager" was not found in the UIManager. #11999
Comments
Hey @JmarshTri! Thanks for opening the issue. It seems that the issue doesn't contain a link to a repro. The best way to get attention to your issue is to provide an easy way for a developer to reproduce the issue. You can provide a repro using any of the following:
A snack link is preferred since it's the easiest way to both create and share a repro. If it's not possible to create a repro using a snack, link to a GitHub repo under your username is a good alternative. Don't link to a branch or specific file etc. as it won't be detected. Try to keep the repro as small as possible by narrowing down the minimal amount of code needed to reproduce the issue. Don't link to your entire project or a project containing code unrelated to the issue. See "How to create a Minimal, Reproducible Example" for more information. You can edit your original issue to include a link to the repro, or leave it as a comment. The issue will be closed automatically after a while if you don't provide a repro. |
@JmarshTri did you find any solution ?? |
same problems |
npm i react-native-pager-view and |
installing it thru expo fixed it for me |
I added react-native-pager-view via yarn and that does not work. I've also ran "rm -rf node_modules; rm -rf ios/build; rm -rf ios/Pods; rm -rf ios/Podfile.lock; yarn; yarn pods" after installing pager-view still getting the error. I also tried npx expo install react-native-pager-view no success with that either |
i tried, me too |
worked for me |
If you are using expo run: |
I'm not using expo and have yet to find a solution that works |
@JmarshTri, did you ever get it figured out? I was having problems after installing it and running I also put in a PR to add the need for |
after installing |
That fix the problem for me 👌 |
Not working for React-native cli on ios device- |
Worked for me |
install @6.3.1 version and run this cd ios, pod install |
worked for me as well maybe try deleting the prev pack and installing this one if it doesnt work the first time. |
Current behavior
I've tried anything from RN 73, Reanimated 2 and 3
import * as React from 'react'
import { View, useWindowDimensions } from 'react-native'
import { TabView, SceneMap } from 'react-native-tab-view'
const FirstRoute = () => (
<View style={{ flex: 1, backgroundColor: '#ff4081' }} />
)
const SecondRoute = () => (
<View style={{ flex: 1, backgroundColor: '#673ab7' }} />
)
const renderScene = SceneMap({
first: FirstRoute,
second: SecondRoute,
})
export default function TabViewExample() {
const layout = useWindowDimensions()
const [index, setIndex] = React.useState(0)
const [routes] = React.useState([
{ key: 'first', title: 'First' },
{ key: 'second', title: 'Second' },
])
return (
<TabView
navigationState={{ index, routes }}
renderScene={renderScene}
onIndexChange={setIndex}
initialLayout={{ width: layout.width }}
/>
)
}
Expected behavior
Render the tab view without crashing
Reproduction
Can't produce
Platform
Packages
Environment
The text was updated successfully, but these errors were encountered: