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

fix: remove react native require cycle warning #242

Merged
merged 1 commit into from
Dec 28, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions components/modal/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const maxHeight = StyleSheet.create({

export interface ModalProps
extends ModalPropsType<TextStyle>,
WithThemeStyles<ModalStyle> {
WithThemeStyles<ModalStyle> {
style?: StyleProp<ViewStyle>;
bodyStyle?: StyleProp<ViewStyle>;
}
Expand All @@ -32,16 +32,16 @@ class AntmModal extends React.Component<ModalProps, any> {
style: {},
bodyStyle: {},
animationType: 'fade',
onClose() {},
onClose() { },
footer: [],
transparent: false,
popup: false,
animateAppear: true,
operation: false,
};
static alert = alert;
static operation = operation;
static prompt = prompt;
static alert: typeof alert;
static operation: typeof operation;
static prompt: typeof prompt;

static contextTypes = {
antLocale: PropTypes.object,
Expand Down
7 changes: 7 additions & 0 deletions components/modal/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
import Modal from './Modal';
import alert from './alert';
import prompt from './prompt';
import operation from './operation';

Modal.alert = alert;
Modal.prompt = prompt;
Modal.operation = operation;

export default Modal;