mirror of
https://github.com/status-im/instabug-reactnative.git
synced 2025-03-03 22:50:48 +00:00
Merge branch 'master' of https://github.com/Instabug/instabug-reactnative into dev
This commit is contained in:
commit
6220145c43
@ -7,14 +7,14 @@
|
|||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
`$ npm install https://github.com/Instabug/instabug-reactnative --save`
|
`$ npm install https://github.com/Instabug/instabug-reactnative#master --save`
|
||||||
|
|
||||||
`$ react-native link instabug-reactnative`
|
`$ react-native link instabug-reactnative`
|
||||||
|
|
||||||
#### iOS installation
|
#### iOS installation
|
||||||
|
|
||||||
1. Open your app `.xcodeproj` file
|
1. Open your app `.xcodeproj` file
|
||||||
2. Add the following line to your "Podfile": `pod 'Instabug', '~> 7.0.0'`
|
2. Add the following line to your "Podfile": `pod 'Instabug', '~> 7.0'`
|
||||||
3. run `pod install`
|
3. run `pod install`
|
||||||
4. Run your project (`Cmd+R`)<
|
4. Run your project (`Cmd+R`)<
|
||||||
|
|
||||||
|
@ -202,9 +202,9 @@ public class RNInstabugReactnativeModule extends ReactContextBaseJavaModule {
|
|||||||
* @param username the username
|
* @param username the username
|
||||||
*/
|
*/
|
||||||
@ReactMethod
|
@ReactMethod
|
||||||
public void setUsername(String username) {
|
public void setUserName(String username) {
|
||||||
try {
|
try {
|
||||||
mInstabug.setUsername(username);
|
mInstabug.setUserName(username);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
6
index.js
6
index.js
@ -1,9 +1,3 @@
|
|||||||
/**
|
|
||||||
* Sample React Native App
|
|
||||||
* https://github.com/facebook/react-native
|
|
||||||
* @flow
|
|
||||||
*/
|
|
||||||
|
|
||||||
import {NativeModules, NativeAppEventEmitter, Platform} from 'react-native';
|
import {NativeModules, NativeAppEventEmitter, Platform} from 'react-native';
|
||||||
let {Instabug} = NativeModules;
|
let {Instabug} = NativeModules;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user