0.0.23 • Published 4 years ago

credmo-react-native v0.0.23

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

Credmo-React-Native

Installation

Install package from npm (or yarn)

npm install credmo-react-native

or

yarn add credmo-react-native

Additional Requirements

This module uses React Native's AsyncStorage. Installation steps can be found here: https://github.com/react-native-community/async-storage

The temp Webview-based module requires "react-native-webview": "^8.1.0". The latest version of react-native-webview fails (known issue on their side) - so please use v8.1.0. Further instructions can be found here: react-native-webview;

Usage sample

//Home
const credmoConfig = {
  appKey: '', // string;
  webviews: false // boolean; Used the temp webview to display user signup, onboarding and credit score details.
  sandbox: true,
  clearUserButton: true, // Adds a btton that clears the userKey and clientToken from AsyncStorage.

}

const Home = () => {
  return (
    <View>
      <Credmo config={credmoConfig} />
    </View>
  )
}

Components

For now, the best way to view available Credmo components is to run the example app.

cd examples
yarn // (or npm install)
cd ios
pod install
cd ..

At this point you should be in the project root folder - where you can start the iOS version by opening the ReactNativeDemo.xcworkspace from Xcode.

CredMo Methods

import { createUser, requestUserAuthQuestions, authenticateUser } from 'credmo-react-native';


  const user = {firstName, lastName, ssn, dob, street, city, state, zip};
  authenticateUser(user)

  //
0.0.23

4 years ago

0.0.22

4 years ago

0.0.21

4 years ago

0.0.2

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago