react-native-snap-carousel
react-native-snap-carousel copied to clipboard
Inverted behaviour of Android when layout is 'stack'
Question.
Is there any fix available for inverted behaviour in android when the layout is stack.Almost tried every way but have no luck.

Did you figured sth. out? Have the same problem.
Did you figured sth. out? Have the same problem.
Still not. Did you figure out anything?
any update on this ?
have the same issue, any luck
node_modules -> react-native-snap-carousel -> src -> utils -> animations.js
LINE 3
from
const IS_ANDROID = Platform.OS === 'android';
to
const IS_ANDROID = false;
This patch fix my issue, thanks @dhruvpvx.
diff --git a/node_modules/react-native-snap-carousel/src/utils/animations.ts b/node_modules/react-native-snap-carousel/src/utils/animations.ts
index bf1c50f..a438f1a 100644
--- a/node_modules/react-native-snap-carousel/src/utils/animations.ts
+++ b/node_modules/react-native-snap-carousel/src/utils/animations.ts
@@ -1,7 +1,7 @@
import { Platform, Animated } from 'react-native';
import type { CarouselProps } from 'src/carousel/types';
-const IS_ANDROID = Platform.OS === 'android';
+const IS_ANDROID = false;
// Get scroll interpolator's input range from an array of slide indexes
// Indexes are relative to the current active slide (index 0)
Steps
- setup patch-package in your project (see a tutorial)
- Make the change in node_modules/react-native-snap-carousel/src/utils/animations.ts
- Run
npx patch-package react-native-snap-carousel