1.3.3 • Published 9 months ago
@evervault/evervault-react-native v1.3.3
react-native-evervault-sdk
Documentation
Please see our documentation site for a full guide and reference.
Installation
npm install @evervault/evervault-react-native
or
yarn add @evervault/evervault-react-native
Usage
import { EvervaultProvider, init, Card, type CardPayload } from "@evervault/evervault-react-native"
export default function App() {
const [cardData, setCardData] = useState<CardPayload | undefined>(undefined);
const handleCardChange = (data: CardPayload) => {
setCardData(data);
if (data.isComplete) {
// note that the user can enter further data even when the Card is in a complete state.
// For example entering the remainder of their name after the first few characters.
console.log("Card is complete!");
}
};
return (
<EvervaultProvider teamUuid="team_4fb7e6ec803f" appUuid="app_f0cb771c8e77">
<ScrollView contentContainerStyle={styles.container}>
<Text style={styles.title}>evervault react native</Text>
<Card
onChange={setCardData}
style={styles.card}
>
<Text>Card Number</Text>
<Card.Number
placeholder="4242 4242 4242 4242"
style={styles.input}
/>
<Card.Expiry
placeholder="MM / YY"
style={styles.input}
/>
<Card.Holder
placeholder="John Doe"
style={styles.input}
/>
<Card.CVC
placeholder="523"
style={styles.input}
/>
</Card>
<Text style={styles.details}>{JSON.stringify(cardData, null, 2)}</Text>
<StatusBar style="auto" />
</ScrollView>
</EvervaultProvider>
);
}
1.3.3
9 months ago
1.2.0
9 months ago
1.1.0
10 months ago
1.0.1
10 months ago
1.0.0
10 months ago
1.3.2
9 months ago
1.3.1
9 months ago
1.2.2
9 months ago
1.3.0
9 months ago
1.2.1
9 months ago
0.3.0
1 year ago
0.4.5
1 year ago
0.5.3
11 months ago
0.4.4
1 year ago
0.5.0
1 year ago
0.5.2
12 months ago
0.4.3
1 year ago
0.4.2
1 year ago
0.2.3
1 year ago
0.2.2
1 year ago
0.2.1
1 year ago
0.2.0
1 year ago
0.1.1
1 year ago