Skip to content
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

[v4] [Android] Unable to click on touchable element when adding a Navigation Container inside Bottom Sheet Modal #1842

Open
ravindraguptacapgemini opened this issue May 23, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@ravindraguptacapgemini
Copy link

ravindraguptacapgemini commented May 23, 2024

Clicks are not working very intuitively on Android when we are trying to add a navigation container inside the Bottom Sheet Modal.

Environment info

Library Version
@gorhom/bottom-sheet 4.6.1
react-native 0.72.9
react-native-reanimated 3.6.1
react-native-gesture-handler 2.14.0

Steps To Reproduce

  1. Create Navigation Container with a StackNavigation inside it
  2. Try tapping on touchable components on the screen in stack screen
  3. Observer the behaviour

Describe what you expected to happen:

  1. Touch should work fine

Reproducible sample code

`const renderBottomDrawer = () => {
return (
<BottomSheetModal
ref={bottomSheetModalRef}
snapPoints={['95%']}
enableDynamicSizing={false}
onDismiss={() => { }}
>


);
};

const FilterNavigator = () => {
const screenOptions = useMemo(
() => ({
...TransitionPresets.SlideFromRightIOS,
headerShown: false,
safeAreaInsets: { top: 0 },
cardStyle: {
backgroundColor: 'white',
overflow: 'visible',
},
animationEnabled: false,
}),
[]
);

const screenAOptions = useMemo(() => ({ headerLeft: () => null }), []);
return (
  <NavigationContainer independent={true}>
    <Stack.Navigator screenOptions={screenOptions}>
      <Stack.Screen
        name="MySubmissionsFilter"
        options={screenAOptions}
      >
        {(props) => <MyFilter
          {...props}
          testID="myFilter"
          onShowResult={(value) => {
            setFilter(value);
            bottomSheetModalRef.current?.close();
          }}
        />}
      </Stack.Screen>
    </Stack.Navigator>
  </NavigationContainer>
);

};`

@ravindraguptacapgemini ravindraguptacapgemini added the bug Something isn't working label May 23, 2024
Copy link

@ravindraguptacapgemini: hello! 👋

This issue is being automatically closed because it does not follow the issue template.

@ravindraguptacapgemini
Copy link
Author

@naytun can you please help here

Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@alessandro-bottamedi
Copy link

Same problem here on Android, react-navigation v6 and Expo 51 (bare)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants