1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

feat: Add isWXAppInstalled props.

This commit is contained in:
jaywcjlove
2020-08-01 19:44:52 +08:00
parent b8d93e9c79
commit ec14ccee87
6 changed files with 30 additions and 17 deletions

View File

@@ -1,22 +1,14 @@
/**
* Sample React Native App
*
* adapted from App.js generated by the following command:
*
* react-native init example
*
* https://github.com/facebook/react-native
*/
import React, { Component } from 'react';
import { Platform, SafeAreaView, StyleSheet, Text, View } from 'react-native';
import RNWechat from '@uiw/react-native-wechat';
import Wechat from '@uiw/react-native-wechat';
export default class App extends Component {
state = {
message: '--'
};
componentDidMount() {
async componentDidMount() {
const isInstall = await Wechat.isWXAppInstalled();
console.log(':isInstall:', isInstall);
// RNWechat.sampleMethod('Testing', 123, (message) => {
// this.setState({
// message