{"repo":"Hector-Zhuang/native-wechat","free":true,"listed":false,"github":"https://github.com/Hector-Zhuang/native-wechat","clone":"git clone https://github.com/Hector-Zhuang/native-wechat.git","description":"A React Native library for supporting Wechat APIs on Android and iOS","language":"Java","stars":208,"topics":["android","ios","react-native","wechat"],"license":"MIT","category":"mobile-apps","readme_excerpt":"Native Wechat A React Native library for supporting Wechat APIs on Android and iOS For Expo Project Please refer to Expo Native Wechat Motivation Most developers using React Native to build apps are not equipped with native developing skills, not to mention connecting their apps with WeChat. Especially, WeChat OpenSDK is something pain in the ass because of shitty docs where lots of APIs are not clear and intuitive. To help developers using React Native, I tried as much as possible to create this library. And I hope you benefit from this and be less frustrated with WeChat. Why - Native WeChat is new, and many libraries like it are no longer maintained and keep up with the latest WeChat. - Native WeChat supports both legacy and new React Native architecture. - Native WeChat is a TurboModule that supports lazy loading, allowing for faster app startup. - Supports TypeScript for better intellisense and easy-to-check typing errors. - All Apis are promisified. Getting Started Register SDK Before invoking any APIs, registering Native WeChat by invoking registerApp is essential. When invoking registerApp , there will be a listener to receive events from Wechat. registerApp returns a function to remove the listener, and no events will be received from Wechat. Invoking API Now is the time to invoke API. For example, we will send an auth request to Wechat and receive the code. You may use the API named sendAuthRequest here. Most APIs in Native WeChat are promisified. So is sendAuthReque","default_branch":null,"files":null,"tree":[],"storefront":"/r/Hector-Zhuang","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Hector-Zhuang/native-wechat/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}