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

import React,{
PropTypes
} from 'react';
import React from 'react';

import {
View,
Expand All @@ -12,27 +10,29 @@ import {
Text,
ScrollView,
TouchableOpacity,
Platform
Platform,
ViewPropTypes
} from 'react-native';

import styles from './style';
import BaseComponent from './BaseComponent';
import PropTypes from 'prop-types';

let componentIndex = 0;

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 ? ViewPropTypes.style : View.propTypes.style,
selectStyle: ViewPropTypes ? ViewPropTypes.style : View.propTypes.style,
optionStyle: ViewPropTypes ? ViewPropTypes.style : View.propTypes.style,
optionTextStyle: Text.propTypes.style,
sectionStyle: View.propTypes.style,
sectionStyle: ViewPropTypes ? ViewPropTypes.style : View.propTypes.style,
sectionTextStyle: Text.propTypes.style,
cancelStyle: View.propTypes.style,
cancelStyle: ViewPropTypes ? ViewPropTypes.style : View.propTypes.style,
cancelTextStyle: Text.propTypes.style,
overlayStyle: View.propTypes.style,
overlayStyle: ViewPropTypes ? ViewPropTypes.style : View.propTypes.style,
cancelText: PropTypes.string
};

Expand Down