1.0.2 • Published 7 years ago
react-native-fabric-util v1.0.2
react-native-fabric-util
Getting started
$ npm install react-native-fabric-util --save
Dependency
This enhancer required [react-native-fabric](https://github.com/corymsmith/react-native-fabric)
, you have to setup Fabric
correctly first
Manual installation
iOS
Not available for now
Android
- Open up
android/app/src/main/java/[...]/MainApplication.java
import vn.agiletech.fabricutil.ReactNativeFabricLogger; // INSET THIS LINE
...
@Override
public void onCreate() {
super.onCreate();
FLog.setLoggingDelegate(ReactNativeFabricLogger.getInstance()); // INSET THIS LINE
Fabric.with(this, new Crashlytics());
}
}
- Append the following lines to
android/settings.gradle
:include ':react-native-fabric-util' project(':react-native-fabric-util').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-fabric-util/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-fabric-util')