Skip to content

Commit

Permalink
Fix ViewPropTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
sbycrosz committed Dec 26, 2017
1 parent c6fd683 commit 8177c90
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ LiteCreditCardInput does not support `requiresName`, `requiresCVC`, and `require
|cardImageBack | PropTypes.number | Image for the credit-card view `e.g. require("./card.png")` |
|labelStyle | Text.propTypes.style | Style for credit-card form's labels |
|inputStyle | Text.propTypes.style | Style for credit-card form's textInput |
|inputContainerStyle | View.propTypes.style | Style for textInput's container<br/> Defaults to: `{ borderBottomWidth: 1, borderBottomColor: "black" }` |
|inputContainerStyle | ViewPropTypes.style | Style for textInput's container<br/> Defaults to: `{ borderBottomWidth: 1, borderBottomColor: "black" }` |
|validColor | PropTypes.string | Color that will be applied for valid text input. Defaults to: "{inputStyle.color}" |
|invalidColor | PropTypes.string | Color that will be applied for invalid text input. Defaults to: "red" |
|placeholderColor | PropTypes.string | Color that will be applied for text input placeholder. Defaults to: "gray" |
Expand Down
3 changes: 2 additions & 1 deletion src/CCInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
TextInput,
TouchableOpacity,
StyleSheet,
ViewPropTypes,
} from "react-native";

const s = StyleSheet.create({
Expand All @@ -24,7 +25,7 @@ export default class CCInput extends Component {

status: PropTypes.oneOf(["valid", "invalid", "incomplete"]),

containerStyle: View.propTypes.style,
containerStyle: ViewPropTypes.style,
inputStyle: Text.propTypes.style,
labelStyle: Text.propTypes.style,
validColor: PropTypes.string,
Expand Down
3 changes: 2 additions & 1 deletion src/CreditCardInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import ReactNative, {
ScrollView,
Dimensions,
TextInput,
ViewPropTypes,
} from "react-native";

import CreditCard from "./CardView";
Expand Down Expand Up @@ -49,7 +50,7 @@ export default class CreditCardInput extends Component {

labelStyle: Text.propTypes.style,
inputStyle: Text.propTypes.style,
inputContainerStyle: View.propTypes.style,
inputContainerStyle: ViewPropTypes.style,

validColor: PropTypes.string,
invalidColor: PropTypes.string,
Expand Down

0 comments on commit 8177c90

Please sign in to comment.