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

import React, { PropTypes } from 'react'
import React from 'react'
import PropTypes from 'prop-types';
import stylePropType from 'react-style-proptype';
import {
Text,
TouchableOpacity,
Expand All @@ -13,16 +15,16 @@ import BaseComponent from './BaseComponent'
import Styles from './styles'

const propTypes = {
options: React.PropTypes.array.isRequired,
selectedOptions: React.PropTypes.array,
maxSelectedOptions: React.PropTypes.number,
onSelection: React.PropTypes.func,
renderIndicator: React.PropTypes.func,
renderSeparator: React.PropTypes.func,
renderRow: React.PropTypes.func,
renderText: React.PropTypes.func,
style: View.propTypes.style,
optionStyle: View.propTypes.style,
options: PropTypes.array.isRequired,
selectedOptions: PropTypes.array,
maxSelectedOptions: PropTypes.number,
onSelection: PropTypes.func,
renderIndicator: PropTypes.func,
renderSeparator: PropTypes.func,
renderRow: PropTypes.func,
renderText: PropTypes.func,
style: stylePropType,
optionStyle: stylePropType,
disabled: PropTypes.bool
};
const defaultProps = {
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
"type": "git",
"url": "git+https://github.com/d-a-n/react-native-multiple-choice.git"
},
"dependencies": {
"prop-types": "~15.5.10",
"react-style-proptype": "~3.0.0"
},
"keywords": [
"multiple-choice",
"single-choice",
Expand Down