mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
dc893756b8
Summary: Between invalidating a bridge and suspending its JS thread, native modules may have their methods called. Only warn when a native module has been invalidated, which happens right before its JS thread is suspended. Avoid initializing a native module's instance if its bridge is invalidated. /cc fkgozali https://github.com/facebook/react-native/commit/f94521244798f859648d1769f397102c06d763f0#commitcomment-32467567 [iOS] [Fixed] - Properly validate JS->native method calls Pull Request resolved: https://github.com/facebook/react-native/pull/23658 Differential Revision: D14287594 Pulled By: fkgozali fbshipit-source-id: 89dd1906a0c55f3f48ba4ff220aac0cddf2eb822