This commit is contained in:
Yousef Hamza 2017-05-08 15:57:39 +02:00
commit 6220145c43
3 changed files with 5 additions and 11 deletions

View File

@ -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`)<

View File

@ -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();
}

View File

@ -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;