React native for WeChat, this is still under in-progress to develop. This module binds WeChat's iOS SDK.
$ npm install react-native-wechat --save
- Link
RCTWeChat
library from yournode_modules/react-native-wechat/ios
folder like its described here. Don't forget to add it to "Build Phases" of project. - Added the following libraries to your "Link Binary With Libraries":
- CoreTelephony.framework
- libsqlite3.0
- libc++
- libz
- Done
- {String}
appid
- {String}
appid
- {String}
appdesc
get if wechat installed in this app
- {Function}
callback
- the result callback.- {Boolean}
installed
- the result.
- {Boolean}
get if wechat support open url.
- {Function}
callback
- the same toisWXAppInstalled
.
get api version
- {Function}
callback
- {Error}
err
the error if something went wrong - {String}
version
the result
- {Error}
open wechat app
- {Function}
callback
callback
send request to wechat
- {String}
openid
the user openid - {Function}
callback
the callback
auth request
- {String}
state
the state of OAuth2 - {Function}
callback
callback
send a success response to wechat
- {Function}
callback
callback
send an error response to wechat
- {String}
message
the error message - {Function}
callback
callback
send an error becaosue cancelation by user to wechat
- {String}
message
the error message - {Function}
callback
callback
For more details, visit WeChat SDK Documentation
MIT @ WeFlex,Inc