expo / react-native-action-sheet

A cross-platform ActionSheet for React Native
MIT License
1.37k stars 224 forks source link

sheet not show in 'fullscreenmodal' stack #277

Closed fukemy closed 1 year ago

fukemy commented 1 year ago

I have this stack:

  const RoomWorkStack = () => {
    const RStack = createNativeStackNavigator()
    return <RStack.Navigator>
      <Stack.Screen name='RoomWorkManagement' component={RoomWorkManagementScreen} options={{ ...defaultNavProps }}/>
      <Stack.Screen name='RoomProjectTaskList' component={RoomProjectTaskListScreen} options={{ ...defaultNavProps }}/>
      <Stack.Screen name='RoomTaskDetail' component={RoomTaskDetailScreen} options={{ ...defaultNavProps }}/>
      <Stack.Screen name='RoomTaskAddComment' component={RoomTaskAddCommentScreen} options={{ ...defaultNavProps }}/>
      <Stack.Screen name='RoomUpdateTask' component={RoomUpdateTaskScreen} options={{ ...defaultNavProps }}/>
    </RStack.Navigator>
  }

in App.js:

<Stack.Screen name='RoomWorkStack' component={RoomWorkStack}
                                    options={{
                                      ...defaultNavProps,
                                      presentation: 'fullScreenModal',
                                      headerShown: false
                                    }} />

In RoomUpdateTask, i tend to show action sheet, but nothing appear

bradbyte commented 1 year ago

@fukemy I'm sorry, I'm not able to trace an issue with this code. Is the issue that the showActionSheetWithOptions isn't available in your component? If so, ensure the parent component is wrapped correctly. Can you try to make an example app with https://snack.expo.dev so I can troubleshoot?

fukemy commented 1 year ago

Hi, Im so sorry, my problem is passing null item title, so it does not show I found the log only show with Xcode only