1.0.1 • Published 7 years ago

react-native-sf-apple-pay v1.0.1

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

react-native-sf-apple-pay

苹果内计费支付

安装

npm install react-native-sf-apple-pay

Methods

MethodsParamsParam TypesdescriptionExample
iapPayproductIdstring内计费支付

例子

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>
    );
  }
}