diff --git a/README.md b/README.md index d03992a..3a214ee 100644 --- a/README.md +++ b/README.md @@ -40,17 +40,18 @@ const UselessComponent = () => ( ## Props -| PropName | Description | Default | -| ----------------- | ------------------------------------------ | -------- | -| initialText | The input element's text | | -| initialTags | ['the', 'initial', 'tags'] | | -| onChangeTags | Fires when tags are added or removed | | -| maxNumberOfTags | The max number of tags that can be entered | infinity | -| onTagPress | Fires when tags are pressed | | -| readonly | Tags cannot be modified | false | -| deleteTagOnPress | Remove the tag when pressed | true | -| containerStyle | Style | | -| style | Style (`containerStyle` alias) | | -| inputStyle | Style | | -| tagContainerStyle | Style | | -| tagTextStyle | Style | | +| PropName | Description | Default | +| ------------------- | ------------------------------------------ | -------- | +| initialText | The input element's text | | +| initialTags | ['the', 'initial', 'tags'] | | +| onChangeTags | Fires when tags are added or removed | | +| maxNumberOfTags | The max number of tags that can be entered | infinity | +| onTagPress | Fires when tags are pressed | | +| readonly | Tags cannot be modified | false | +| deleteTagOnPress | Remove the tag when pressed | true | +| containerStyle | Style | | +| style | Style (`containerStyle` alias) | | +| inputContainerStyle | Style | | +| inputStyle | Style | | +| tagContainerStyle | Style | | +| tagTextStyle | Style | | diff --git a/Tags/__tests__/__snapshots__/Tags-tests.js.snap b/Tags/__tests__/__snapshots__/Tags-tests.js.snap index 285d569..78e7835 100644 --- a/Tags/__tests__/__snapshots__/Tags-tests.js.snap +++ b/Tags/__tests__/__snapshots__/Tags-tests.js.snap @@ -172,6 +172,7 @@ exports[`Tags should render props correctly 1`] = ` "margin": 4, "minWidth": 100, }, + undefined, ] } > diff --git a/Tags/index.js b/Tags/index.js index 0151d39..a96785b 100644 --- a/Tags/index.js +++ b/Tags/index.js @@ -1,6 +1,6 @@ import React from "react"; import PropTypes from "prop-types"; -import { View, Text, TextInput, TouchableOpacity } from "react-native"; +import { View, TextInput, ViewPropTypes } from "react-native"; import Tag from "./Tag"; import styles from "./styles"; @@ -65,7 +65,8 @@ class Tags extends React.Component { onTagPress, readonly, maxNumberOfTags, - inputStyle + inputStyle, + inputContainerStyle } = this.props; return ( @@ -101,7 +102,7 @@ class Tags extends React.Component { {!readonly && maxNumberOfTags > this.state.tags.length && ( - + (http://github.com/peterp/)", "license": "MIT", "peerDependencies": { - "react": "*", - "react-native": "*" + "react": ">= 16.0", + "react-native": ">= 0.44" }, "devDependencies": { "babel-jest": "^22.4.3",