1.4.0 • Published 6 months ago

@evervault/evervault-react-native v1.4.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

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.6

8 months ago

1.3.5

10 months ago

1.3.4

10 months ago

1.4.0

6 months ago

1.3.3

1 year ago

1.2.0

1 year ago

1.1.0

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

1.3.2

1 year ago

1.3.1

1 year ago

1.2.2

1 year ago

1.3.0

1 year ago

1.2.1

1 year ago

0.3.0

1 year ago

0.4.5

1 year ago

0.5.3

1 year ago

0.4.4

1 year ago

0.5.0

1 year ago

0.5.2

1 year ago

0.4.3

1 year ago

0.4.2

1 year ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.1

2 years ago