zipyai-react-native-staging
v0.34.0
Published
The React Native Staging SDK for ZIPY
Downloads
5
Readme
zipyai-react-native-staging
Zipy Screen Recorder SDK react native
Installation
npm install zipyai-react-native-staging
Android
AndroidManifest
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
android:allowBackup="true"
android:requestLegacyExternalStorage="true"
project level build.gradle
minSdkVersion = 21
How to use
Using class component
import React from 'react';
import ZIPY from 'zipyai-react-native-staging';
ZIPY.setJSExceptionHandler((err, isfatle) => {
ZIPY.crashFileOnServer(err.message)
}, true)
export default class App extends React.Component {
componentDidMount() {
ZIPY.startRecordingScreen()
}
render(){
return(
<View> </View>
)
}
}
Using Hooks
import React,{useEffect} from 'react';
import ZIPY from 'zipyai-react-native-staging';
ZIPY.setJSExceptionHandler((err, isfatle) => {
ZIPY.crashFileOnServer(err.message)
}, true)
function App(props){
useEffect(()=>{
ZIPY.startRecordingScreen()
},[])
return(
<View> </View>
)
}
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT