Skip to content

[Android] Invoking setProperty on null object ref (RN 0.79+ support)Β #607

@akuul

Description

@akuul

Description

With the release of React Native 0.79, SafeAreaView on Android started giving an error. I saw a similar issue, but decided to open a new one with more context. iOS works fine.

Attempt to invoke interface method 'void com.facebook.react.uimanager.ViewManagerDelegate.setProperty(android.view.View, java.lang.String, java.lang.Object)' on a null object reference

This is probably related to the facebook/react-native#48602 commit.

This purely happens with the SafeAreaView. Replacing with the one from React Native works fine.

Steps to reproduce

  1. Wrap component with SafeAreaView and start app on Android

Snack or a link to a repository

Safe Area Context version

5.3.0

React Native version

0.79.0

Platforms

Android

Architecture

Fabric (New Architecture)

Build type

Debug mode

Device

Android emulator

Device model

Pixel 9

Acknowledgements

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions