milansusnjar / react-native-record-screen-zone

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-native-record-screen-zone

react-native-record-screen-zone

Installation

npm install react-native-record-screen-zone react-native-record-screen react-native-ffmpeg

Usage

import { useRecordScreenZone } from 'react-native-record-screen-zone';

export const App = () => {
  const { startRecording, stopRecording, RecordScreenZone } = useRecordScreenZone();

  const _handleOnStartRecording = () => {
    startRecording()
  }

  const _handleOnStopRecording = async () => {
    const res = await stopRecording()
    if (res) {
      console.log(res)
    }
  }

  return (
    <>
      <Navbar />
      <View>
        <View>
          <Text>Not recording area<Text>
        </View>
        <RecordScreenZone>
          <View>
            <Text>Recording area<Text>
          </View>
        </RecordScreenZone>
      </View>
      <Footer />
    </>
  )
}

License

MIT

About

License:MIT License


Languages

Language:TypeScript 63.5%Language:Kotlin 19.2%Language:Objective-C 8.2%Language:Ruby 8.1%Language:JavaScript 1.1%