Open captainalbert opened 1 month ago
Hey there, @captainalbert! I'm here to assist you with any bugs, questions, or contributions. Let me know how I can help you!
I found some similar issues and discussions that might help you resolve the problem:
Similar Issues:
4.0.0-alpha.12
or later.4.x alpha
of react-native-reanimated-carousel
.Possible Solution:
react-native-reanimated-carousel
version 4.0.0-alpha.12
, you need:
react-native-gesture-handler
: >=2.9.0
react-native-reanimated
: >=3.0.0
react-native-gesture-handler
version 1.9.0
is outdated. Upgrade it to >=2.9.0
:
npm install react-native-gesture-handler@latest
or
yarn add react-native-gesture-handler@latest
Configuration Steps:
ScrollView
or FlatList
, configure the gesture handler to ensure the unused axis does not impede the scroll of the list:
<Carousel
{...}
onConfigurePanGesture={gestureChain => (
gestureChain.activeOffsetX([-10, 10])
)}
/>
Additional Fix:
react-native-reanimated
, add the following line in your index.js
:
global.__reanimatedWorkletInit = () => {};
By following these steps, you should be able to resolve the "undefined is not an object" error when importing the Pagination
component [1][2][3][4][5].
To continue talking to Dosu, mention @dosu.
Describe the bug This shows when I am trying to import Pagination component from
To Reproduce Steps to reproduce the behavior:
My implementation:
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Versions (please complete the following information):
Smartphone (please complete the following information):
Additional context Add any other context about the problem here.