react-native-jefferson
v1.0.26
Published
Error Reporting Software for Mobile
Downloads
5
Readme
Jefferson
Error Reporting Software for Mobile
www.jefferson.pro/#setupSDK
Linking project with Android
npm i jefferson
1)Add your APIKEY metatag in your application tag in manifest as follows
<meta-tag android:name="JEFFERSON_API_KEY" android:value="your_api_key"/>
2)Add into your app/build.gradle
implementation project(':jefferson')
3)Add into your settings.gradle
include ':jefferson'
project(':jefferson').projectDir = new File(rootProject.projectDir, '../node_modules/jefferson/android')
4)Usage in RN:
import JF,{JF_setJSErrorCatcher} from 'jefferson'
JF.start()
JF_setJSErrorCatcher()
JF.saveGeovisionUserForCrashLog("dummyuser");
JF.sendEvent("string")
//
class App extends React.Component{
componentDidMount(){
// as()
}
render(){
return(<View><TouchableOpacity onPress={()=>JF.fatalCrash()}><Text>press</Text></TouchableOpacity></View>)
}
}
export default App;