Skip to content
Open
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
19 changes: 10 additions & 9 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
'use strict';

import React,{
PropTypes
} from 'react';
import React from 'react';
import { ViewPropTypes } from 'react-native';
import PropTypes from 'prop-types';

import {
View,
Expand All @@ -24,15 +24,15 @@ const propTypes = {
data: PropTypes.array,
onChange: PropTypes.func,
initValue: PropTypes.string,
style: View.propTypes.style,
selectStyle: View.propTypes.style,
optionStyle: View.propTypes.style,
style: ViewPropTypes.style,
selectStyle: ViewPropTypes.style,
optionStyle: ViewPropTypes.style,
optionTextStyle: Text.propTypes.style,
sectionStyle: View.propTypes.style,
sectionStyle: ViewPropTypes.style,
sectionTextStyle: Text.propTypes.style,
cancelStyle: View.propTypes.style,
cancelStyle: ViewPropTypes.style,
cancelTextStyle: Text.propTypes.style,
overlayStyle: View.propTypes.style,
overlayStyle: ViewPropTypes.style,
cancelText: PropTypes.string
};

Expand Down Expand Up @@ -181,3 +181,4 @@ export default class ModalPicker extends BaseComponent {

ModalPicker.propTypes = propTypes;
ModalPicker.defaultProps = defaultProps;