react-native-sf-apple-pay

1.0.1 • Public • Published

react-native-sf-apple-pay

苹果内计费支付

安装

npm install react-native-sf-apple-pay

Methods

Methods Params Param Types description Example
iapPay productId string 内计费支付

例子


import React, { Component } from 'react';
import {
  Platform,
  StyleSheet,
  Text,
  View,
    Dimensions,
    TouchableOpacity
} from 'react-native';

import SFDrawer from "react-native-sf-drawer"
var dw = Dimensions.get('window').width;
var dh = Dimensions.get('window').height;
export default class App extends Component {
  click = () => {
    this.refs.drawer.show()

  }
  render() {
    return (
      <View style={styles.container}>
        <TouchableOpacity onPress={this.click}>
          <View style={{
            width:dw,
            height:150,
            backgroundColor:'red'
          }}></View>
        </TouchableOpacity>

        <SFDrawer
            ref="drawer"

          drawerDirection={'left'}
        >
          <View style={{
            height:dh,
            backgroundColor:'green'
          }}></View>
        </SFDrawer>
      </View>
    );
  }
}

Readme

Keywords

none

Package Sidebar

Install

npm i react-native-sf-apple-pay

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

38.1 kB

Total Files

14

Last publish

Collaborators

  • suifeng586