Find alternative to delay when showing multiple bottom sheets sequentially on iOS #29672
Labels
Mobile App - i.e. Android or iOS
Native mobile impl of the block editor. (Note: used in scripts, ping mobile folks to change)
[Type] Enhancement
A suggestion for improvement.
There is iOS-specific tech-debt in the project where if
<BottomSheet>
is presented and we wish to present another<BottomSheet>
after closing the first, we have to put a delay in-between (e.g. 100ms delay). Without the delay, the hiding of the first bottom sheet closes the second bottom sheet as it's being presented.See https://github.com/WordPress/gutenberg/blob/trunk/packages/block-library/src/missing/edit.native.js#L160-L174
Related discussion (in this project)
There is some discussion around this problem which I've quote below:
[RNMobile] Simplify media insertion flow Part 2 - media upload #29547
[RNMobile] Unsupported fallback spike #21150 (comment)
Links about this issue
This issue appears to be a problem with
react-native-modal
(which powers the<BottomSheet>
component) and there are some issues here:The text was updated successfully, but these errors were encountered: