sonnylazuardi / react-native-credit-card Goto Github PK
View Code? Open in Web Editor NEW:credit_card: React native credit card display component
Home Page: https://exp.host/@sonnylazuardi/react-native-credit-card-demos
License: MIT License
:credit_card: React native credit card display component
Home Page: https://exp.host/@sonnylazuardi/react-native-credit-card-demos
License: MIT License
not support and catch error
ViewPropTypes has been removed
Visa and MasterCard images logos are outdated, both card schemes introduced new simpler Logos.
The extra space used by VALID THRU
often causes the card holder name to be displayed in two lines. This don't match what is printed in the actual card.
Given that the current design already have a self explanatory text Month\Year
I recommend removing the valid thru
text.
I tried to use it like this:
<CreditCard
style={{
marginVertical: 10,
marginHorizontal: 10,
marginBottom: 0,
elevation: 3,
alignSelf: "center"
}}
type={this.state.type}
imageFront={require("./images/card-front.png")}
imageBack={require("./images/card-back.png")}
shiny={true}
bar={false}
focused={this.state.focused}
number={this.state.number}
name={this.state.name}
expiry={this.state.expiry}
cvc={this.state.cvc}
/>
But nothing is showing.
https://github.com/facebook/react-native/releases/tag/v0.36.0
We need to remove some flex: 1
to make it work again
Hi there,
I installed normally using yarn and noticed that the npm package is outdated. By specifically using the github repository works fine.
It would be good to update the npm version to the latest.
I'm unable to change/remove the card labels such as "FULL NAME", "MONTH/YEAR", even if I try to use a frontImage the text will still be displayed
Hi @sonnylazuardi,
I would like to play with your library, can you please share your sample implementation (as shown in the gif on your README)? It would come highly in handy, nice work by the way.
Thanks
Amex CVV is located in the front, ideally the card should not flip this UI is only expected in Visa and MasterCard cards
There should be a prop to change the text of 'VALID THRU' and 'MONTH/YEAR' because of i18n.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.