Skip to content

Commit efc2a96

Browse files
committed
Fix Modal code formatting
1 parent 702d7a7 commit efc2a96

File tree

1 file changed

+32
-26
lines changed

1 file changed

+32
-26
lines changed

src/components/modal/index.tsx

Lines changed: 32 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
import _ from 'lodash';
22
import React, {Component} from 'react';
3-
import {StyleSheet, Modal as RNModal, ModalProps as RNModalProps, TouchableWithoutFeedback, GestureResponderEvent} from 'react-native';
3+
import {
4+
StyleSheet,
5+
Modal as RNModal,
6+
ModalProps as RNModalProps,
7+
TouchableWithoutFeedback,
8+
GestureResponderEvent
9+
} from 'react-native';
410
import {BlurViewPackage} from '../../optionalDependencies';
511
import {Constants} from '../../helpers';
612
import {asBaseComponent} from '../../commons/new';
@@ -11,31 +17,31 @@ const BlurView = BlurViewPackage?.BlurView;
1117

1218
export {ModalTopBarProps};
1319
export interface ModalProps extends RNModalProps {
14-
/**
15-
* Blurs the modal background when transparent (iOS only)
16-
*/
17-
enableModalBlur?: boolean;
18-
/**
19-
* A custom view to use as a BlueView instead of the default one
20-
*/
21-
blurView?: JSX.Element;
22-
/**
23-
* allow dismissing a modal when clicking on its background
24-
*/
25-
onBackgroundPress?: (event: GestureResponderEvent) => void;
26-
/**
27-
* the background color of the overlay
28-
*/
29-
overlayBackgroundColor?: string;
30-
/**
31-
* The modal's end-to-end test identifier
32-
*/
33-
testID?: string;
34-
/**
35-
* Overrides the text that's read by the screen reader when the user interacts with the element. By default, the
36-
* label is constructed by traversing all the children and accumulating all the Text nodes separated by space.
37-
*/
38-
accessibilityLabel?: string;
20+
/**
21+
* Blurs the modal background when transparent (iOS only)
22+
*/
23+
enableModalBlur?: boolean;
24+
/**
25+
* A custom view to use as a BlueView instead of the default one
26+
*/
27+
blurView?: JSX.Element;
28+
/**
29+
* allow dismissing a modal when clicking on its background
30+
*/
31+
onBackgroundPress?: (event: GestureResponderEvent) => void;
32+
/**
33+
* the background color of the overlay
34+
*/
35+
overlayBackgroundColor?: string;
36+
/**
37+
* The modal's end-to-end test identifier
38+
*/
39+
testID?: string;
40+
/**
41+
* Overrides the text that's read by the screen reader when the user interacts with the element. By default, the
42+
* label is constructed by traversing all the children and accumulating all the Text nodes separated by space.
43+
*/
44+
accessibilityLabel?: string;
3945
}
4046

4147
/**

0 commit comments

Comments
 (0)