Skip to content

setAppProperties won't trigger UNSAFE_componentWillReceiveProps #53241

Description

@nanatlantica

Description

On old arch , setAppProperties in RCTRootView can trigger UNSAFE_componentWillReceiveProps, But on new arch, setAppProperties in RCTFabricSurfaceHostingProxyRootView, setAppProperties won't trigger the same method in Javascript

Are there any alternative solutions to trigger UNSAFE_componentWillReceiveProps from objective-c to Javascript?

Steps to reproduce

same as description

React Native Version

0.79.0

Affected Platforms

Runtime - iOS

Areas

Fabric - The New Renderer

Output of npx @react-native-community/cli info

blank

Stacktrace or Logs

blank

MANDATORY Reproducer

In Objective-C , call RCTFabricSurfaceHostingProxyRootView.setAppProperties

Screenshots and Videos

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: Author FeedbackNeeds: ReproThis issue could be improved with a clear list of steps to reproduce the issue.Type: New ArchitectureIssues and PRs related to new architecture (Fabric/Turbo Modules)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions