Open kopax opened 4 years ago
add react-native-snap-carousel
It seems to work with yarn
instead of npm
(I can reproduce the issue with npm
). Don't know the reason yet
git clone https://github.com/archriss/react-native-snap-carousel.git
cd react-native-snap-carousel
yarn
cd example
yarn
yarn android
I tried to change the example's package.json on
"react-native-snap-carousel": "file:../"
to
"react-native-snap-carousel": "3.9.0"
in this cae, it can work with npm install
and npm run android
. So I think it might relate to the local package and npm.
any solution with npm yet?
yarn add react-native-snap-carousel @types/react-native-snap-carousel
two packages, both
Sorry, please allow me to advertise for my open source library! ~ I think this library react-native-reanimated-carousel will solve your problem. It is a high performance and very simple component, complete with React-Native reanimated 2
I have the same issue can someone helppppp
您好,以下是自动回复内容: 您的来信我已收到,我会在尽快最短时间内回复您! 谢谢您的来信,祝您生活愉快
Thanks
TypeError: Cannot read properties of undefined (reading 'hookChildProcess') in react native:
Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag. error Failed to run jetifier. TypeError: Cannot read properties of undefined (reading 'hookChildProcess') at module.exports (/Volumes/Os/ReactNativePROJECT/Educational/node_modules/react-native/node_modules/execa/index.js:308:22) at Object.runAndroid [as func] (/Volumes/Os/ReactNativePROJECT/Educational/node_modules/react-native/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/index.js:104:34) at Command.handleAction (/Volumes/Os/ReactNativePROJECT/Educational/node_modules/@react-native-community/cli/build/index.js:192:23) at Command.listener (/Volumes/Os/ReactNativePROJECT/Educational/node_modules/commander/index.js:315:8) at Command.emit (node:events:527:28) at Command.parseArgs (/Volumes/Os/ReactNativePROJECT/Educational/node_modules/commander/index.js:651:12) at Command.parse (/Volumes/Os/ReactNativePROJECT/Educational/node_modules/commander/index.js:474:21) at setupAndRun (/Volumes/Os/ReactNativePROJECT/Educational/node_modules/@react-native-community/cli/build/index.js:271:24) at run (/Volumes/Os/ReactNativePROJECT/Educational/node_modules/@react-native-community/cli/build/index.js:212:11) at Object. (/Volumes/Os/ReactNativePROJECT/Educational/node_modules/@react-native-community/cli/build/bin.js:8:11) info Run CLI with --verbose flag for more details.
I managed to run the example on android:
"dependencies": {
"react": "16.9.0",
"react-native": "0.61.5",
"react-native-linear-gradient": "2.5.6",
"react-native-snap-carousel": "file:../"
},
"devDependencies": {
"@babel/core": "7.9.6",
"@babel/runtime": "7.9.6",
"babel-jest": "^24.9.0",
"jest": "^24.9.0",
"metro-react-native-babel-preset": "0.61.0",
"react-test-renderer": "16.9.0"
},
您好,以下是自动回复内容: 您的来信我已收到,我会在尽快最短时间内回复您! 谢谢您的来信,祝您生活愉快
yarn add react-native-snap-carousel @types/react-native-snap-carousel
two packages, both
Its work for me thanks for your help.
Is this a bug report, a feature request, or a question?
Question
Have you followed the required steps before opening a bug report?
Have you made sure that it wasn't a React Native bug?
yes
Is the bug specific to iOS or Android? Or can it be reproduced on both platforms?
Android
Is the bug reproductible in a production environment (not a debug one)?
In an emulator, I didn't went that far to tell it's production
Environment
Emulator
Expected Behavior
I expect to run the examples on android
Actual Behavior
Right after cloning the
master
branch, runningnpm run android
produce the followingReproducible Demo
The
examples
directory of this repositorySteps to Reproduce