react-native-record-screen-zone
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

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

Package Sidebar

Install

npm i react-native-record-screen-zone

Weekly Downloads

0

Version

0.1.1

License

MIT

Unpacked Size

1.13 MB

Total Files

210

Last publish

Collaborators

  • yutasuzuki