Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.
This repository was archived by the owner on May 20, 2025. It is now read-only.

AppState removeEventListener is not a function #2378

@RalissonMattias

Description

@RalissonMattias

I'm using sentry and crashlytics to monitor my app and I often get errors on the dashboard, which point to code push

Steps to Reproduce

  1. Create RN project
  2. Install and configure last sdk version of the code push

Expected Behavior

That the app does not show error logs

Actual Behavior

Archive mentioned node_modules/react-native-code-push/CodePush.js

TypeError: f.AppState.removeEventListener is not a function. (In 'f.AppState.removeEventListener("change",t)', 'f.AppState.removeEventListener' is undefined)

Environment

  • react-native-code-push version: 7.0.5
  • react-native version: 0.70.6
  • iOS/Android/Windows version: IOS 16.1
  • Does this reproduce on a debug build or release build? Release build
  • Does this reproduce on a simulator, or only on a physical device? Physical device

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions