feat: default useModal to true when autoFocus is set

This commit is contained in:
Andy Li authored and GitHub committed 2021-09-07 08:45:56 -05:00
1 parent e2e141bf53
commit 688fd47227
1 file changed
+1 -1
+1 -1
View File
@@ -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={[