mirror of
https://github.com/expo/react-native-action-sheet.git
synced 2026-11-14 19:11:42 -10:00
feat: default useModal to true when autoFocus is set
This commit is contained in:
1 parent
e2e141bf53
commit
688fd47227
1 file changed
+1
-1
@@ -55,7 +55,7 @@ export default class ActionSheet extends React.Component<Props, State> {
|
||||
|
||||
render() {
|
||||
const { isVisible, overlayOpacity, options } = this.state;
|
||||
const useModal = options ? options.useModal === true : false;
|
||||
const useModal = options ? options.autoFocus || options.useModal === true : false;
|
||||
const overlay = isVisible ? (
|
||||
<Animated.View
|
||||
style={[
|
||||
|
||||
Reference in new issue
Block a user