1.0.7 • Published 4 years ago

rn-record-screen v1.0.7

Weekly downloads
3
License
ISC
Repository
github
Last release
4 years ago

rn-record-screen

rn-record-screen

Installation

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

Usage

import { useRecordScreenZone } from 'rn-record-screen';

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

  const _handleOnStartRecording = () => {
    startRecording({mic: true})
  }

  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