1.0.11 • Published 1 year ago

@alixpay/react-native-mobile-sdk v1.0.11

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

React Native Mobile SDK

npm version

Requirements

React Native v0.62.0+ is the minimum version supported.

Install

$ npm install @alixpay/react-native-mobile-sdk react-native-webview

or

$ yarn add @alixpay/react-native-mobile-sdk react-native-webview

Setup

import { SDKProvider } from '@alixpay/react-native-mobile-sdk'

function Component() {
  return (
    <SDKProvider>
      <App />
    </SDKProvider>
  )
}

Usage

Example:

import { useSDK } from '@alixpay/react-native-mobile-sdk'

function Component() {
  const { launchSDK } = useSDK()

  return (
    <View>
      <Button
        onPress={() => {
          const queryParams = {
            coin: '...',
            theme: 'light',
            env: 'Sandbox',
            walletAddress: '...',
            appToken: '...',
          }
          launchSDK(queryParams)
        }}
      />
    </View>
  )
}

Query Params

KeyDescriptionDefault
coinNone
walletAddressNone
appTokenNone
themeoptionallight
envSandbox or ProductionSandbox
1.0.9

1 year ago

1.0.8

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago