https://github.com/jpush/jshare-react-native
https://github.com/jpush/jshare-react-native
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/jpush/jshare-react-native
- Owner: jpush
- License: mit
- Created: 2017-07-10T09:37:19.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-10-24T06:34:34.000Z (over 2 years ago)
- Last Synced: 2025-04-13T04:15:33.304Z (about 1 year ago)
- Language: Objective-C
- Homepage: https://docs.jiguang.cn
- Size: 51.7 MB
- Stars: 105
- Watchers: 20
- Forks: 28
- Open Issues: 29
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jshare-react-native
## Install
```
npm install jshare-react-native --save
npm install jcore-react-native --save
react-native link
```
##### Add with CocoaPods(if you integrated react-native to native iOS project)
Add the JShareRN pod to your list of application pods in your Podfile, using the path from the Podfile to the installed module:
```
pod 'JShareRN', :path => '../node_modules/jshare-react-native'
pod 'JCoreRN', :path => '../node_modules/jcore-react-native'
```
Install pods as usual::
```
pod install
```
## Manually Configure Part
### Android
- [Checkout configuration](./docs/AndroidConfig.md)
- [Add JSharePackage, Don't forget the parameters !](./docs/JSharePackage.md)
- [Checkout AndroidManifest](./docs/AndroidManifest.md)
- [Add JGShareSDK.xml](./docs/JGShareSDK.md)
- [Add WXEntryActivity](./docs/WXEntryActivity.md)
- [Add JChatProCallbackActivity](./docs/JChatProCallbackActivity.md)
That's it.
### iOS
- [configure iOS](./docs/iOSConfig.md)
## Usage
- Import JShareModule:
> your component.js
```javascript
...
import JShareModule from 'jshare-react-native';
JShareModule.setup(param) // iOS 调用该方法才能正常使用, param 参考 API 文档
```
- Use JShareModule call APIs, [API Document](./docs/API.md)