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

Unable to Open another sheet over existing sheet in ios #35

Closed
rahul121010989kumar opened this issue Oct 9, 2019 · 2 comments
Closed

Comments

@rahul121010989kumar
Copy link

i m facing problem in ios device, when i click on any item of rbsheet, i need to open another rbsheet. This works fine in android device, but not in ios device. pls help.

@nysamnang
Copy link
Owner

nysamnang commented Oct 10, 2019

@rahul121010989kumar RBSheet is implemented on top of react native Modal and this is currently not possible #3445. Anyway, you are able to nest components to achieve this behaviour.

<View>
  <Button title="OPEN BOTTOM SHEET 1" onPress={() => { this.RBSheet1.open(); }} />
  <RBSheet ref={ref => { this.RBSheet1 = ref; }}>
    <YourOwnComponentOne onPress={() => { this.RBSheet2.open(); }}  />
    <RBSheet ref={ref => { this.RBSheet2 = ref; }}>
      <YourOwnComponentTwo />
    </RBSheet>
  </RBSheet>
</View>

Hope this could help.

@MujeebAyokunle
Copy link

I also couldn't open multiple sheets on each other in iOS. I tried to close the first sheet and open the second one immediately, but it also didn't work. The solution my colleague and I came up with was a timeout of 2 seconds between closing the first sheet and automatically opening the second one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants