Skip to content

null is not an object #29

@guthriet1230

Description

@guthriet1230

I downloaded the package and pod installed. i reran my metro server and when i navigate to my camera screen, the code is fired and BOOM...

null is not an object (evaluating '_reactNative.NativeModules.KCKeepAwake.activate')

"react-native": "0.69.3",
"react-native-idle-timer": "^2.1.7",

import IdleTimerManager from 'react-native-idle-timer';

within my component
useEffect(()=>{
if(isRecording){
IdleTimerManager.setIdleTimerDisabled(true);
} else{
IdleTimerManager.setIdleTimerDisabled(false);
}
},[isRecording])

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions