mirror of
https://github.com/status-im/instabug-reactnative.git
synced 2025-03-03 14:40:54 +00:00
commit
4b20e954de
@ -7,14 +7,14 @@
|
||||
|
||||
## 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`
|
||||
|
||||
#### iOS installation
|
||||
|
||||
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`
|
||||
4. Run your project (`Cmd+R`)<
|
||||
|
||||
|
@ -202,9 +202,9 @@ public class RNInstabugReactnativeModule extends ReactContextBaseJavaModule {
|
||||
* @param username the username
|
||||
*/
|
||||
@ReactMethod
|
||||
public void setUsername(String username) {
|
||||
public void setUserName(String username) {
|
||||
try {
|
||||
mInstabug.setUsername(username);
|
||||
mInstabug.setUserName(username);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
8
index.js
8
index.js
@ -1,9 +1,3 @@
|
||||
/**
|
||||
* Sample React Native App
|
||||
* https://github.com/facebook/react-native
|
||||
* @flow
|
||||
*/
|
||||
|
||||
import {NativeModules, NativeAppEventEmitter, Platform} from 'react-native';
|
||||
let {Instabug} = NativeModules;
|
||||
import instabugUtils from './utils/instabugUtils.js';
|
||||
@ -974,4 +968,4 @@ module.exports = {
|
||||
messageNotification: Instabug.messageNotification,
|
||||
messagesNotificationAndOthers: Instabug.messagesNotificationAndOthers
|
||||
}
|
||||
};
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user