diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle
index 4c3057811..48d9877c3 100644
--- a/example/android/app/build.gradle
+++ b/example/android/app/build.gradle
@@ -77,7 +77,7 @@ import com.android.build.OutputFile
project.ext.react = [
enableHermes: true,
- entryFile: "index.tsx",
+ entryFile: "index.ts",
]
apply from: "../../node_modules/react-native/react.gradle"
diff --git a/example/src/screens/modal/StackExample.tsx b/example/src/screens/modal/StackExample.tsx
index 2d6e5d615..a265f0245 100644
--- a/example/src/screens/modal/StackExample.tsx
+++ b/example/src/screens/modal/StackExample.tsx
@@ -63,7 +63,7 @@ const StackExample = () => {
[]
);
const renderBottomSheetContent = useCallback(
- onPress => ,
+ onPress => ,
[]
);
return (
diff --git a/src/components/bottomSheetModal/BottomSheetModal.tsx b/src/components/bottomSheetModal/BottomSheetModal.tsx
index e396f09cd..43cb900b3 100644
--- a/src/components/bottomSheetModal/BottomSheetModal.tsx
+++ b/src/components/bottomSheetModal/BottomSheetModal.tsx
@@ -162,10 +162,6 @@ const BottomSheetModalComponent = forwardRef<
const handlePresent = useCallback(
function handlePresent() {
requestAnimationFrame(() => {
- if (mount) {
- bottomSheetRef.current?.snapToIndex(index);
- return;
- }
setMount(true);
mountSheet(key, ref, stackBehavior);
@@ -175,7 +171,8 @@ const BottomSheetModalComponent = forwardRef<
});
});
},
- [key, index, stackBehavior, mount, ref, mountSheet]
+ // eslint-disable-next-line react-hooks/exhaustive-deps
+ [key, stackBehavior, mountSheet]
);
const handleDismiss = useCallback(
function handleDismiss(animationConfigs) {