Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added compatibility for react 16 #71

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 3 additions & 2 deletions package.json
Expand Up @@ -34,11 +34,12 @@
"homepage": "https://github.com/sbycrosz/react-native-credit-card-input#readme",
"dependencies": {
"card-validator": "^3.0.0",
"react-native-flip-card": "^3.3.0",
"lodash.compact": "^3.0.1",
"lodash.every": "^4.6.0",
"lodash.pick": "^4.4.0",
"lodash.values": "^4.3.0"
"lodash.values": "^4.3.0",
"prop-types": "^15.5.10",
"react-native-flip-card": "git+https://github.com/brunocascio/react-native-flip-card.git"
},
"devDependencies": {
"babel-eslint": "^5.0.0",
Expand Down
4 changes: 3 additions & 1 deletion src/CCInput.js
@@ -1,4 +1,4 @@
import React, { Component, PropTypes } from "react";
import React, { Component } from "react";
import {
View,
Text,
Expand All @@ -7,6 +7,8 @@ import {
StyleSheet,
} from "react-native";

import PropTypes from "prop-types";

const s = StyleSheet.create({
baseInputStyle: {
color: "black",
Expand Down
4 changes: 3 additions & 1 deletion src/CardView.js
@@ -1,4 +1,4 @@
import React, { Component, PropTypes } from "react";
import React, { Component } from "react";
import {
View,
Image,
Expand All @@ -7,6 +7,8 @@ import {
Platform,
} from "react-native";

import PropTypes from "prop-types";

import defaultIcons from "./Icons";
import FlipCard from "react-native-flip-card";

Expand Down
3 changes: 2 additions & 1 deletion src/CreditCardInput.js
@@ -1,4 +1,5 @@
import React, { Component, PropTypes } from "react";
import React, { Component } from "react";
import PropTypes from "prop-types";
import ReactNative, {
NativeModules,
View,
Expand Down
3 changes: 2 additions & 1 deletion src/LiteCreditCardInput.js
@@ -1,4 +1,5 @@
import React, { Component, PropTypes } from "react";
import React, { Component } from "react";
import PropTypes from "prop-types";
import {
View,
Text,
Expand Down
3 changes: 2 additions & 1 deletion src/connectToState.js
@@ -1,4 +1,5 @@
import React, { Component, PropTypes } from "react";
import React, { Component } from "react";
import PropTypes from "prop-types";
import CCFieldFormatter from "./CCFieldFormatter";
import CCFieldValidator from "./CCFieldValidator";
import compact from "lodash.compact";
Expand Down