yutasuzuki / react-native-record-screen

react-native-record-screen
MIT License
149 stars 40 forks source link

Error in RecordingStartResponse.Permission. #120

Open Nishannb opened 8 months ago

Nishannb commented 8 months ago

Error message says: 'RecordingStartResponse' only refers to a type, but is being used as a value here. I am using the boilerplate given in pkg example, but it still gets error. This is the code getting error:

Screenshot 0006-03-02 at 22 55 20

This is how I imported the pkg:

Screenshot 0006-03-02 at 22 55 52

These are the dependencies I am using: "dependencies": { "react": "18.2.0", "react-native": "0.73.2", "react-native-record-screen": "^0.6.1" },

yutasuzuki commented 8 months ago

@Nishannb Sorry... README is wrong. Please change to RecordingResult from RecordingStartResponse.

if (res === RecordingResult.PermissionError) {
  // user denies access
}