If component is not registered using AppRegistry.registerComponent and reactRootView.startReactApplication is called for that component - then it breaks attaching screen shot for ref.
before (component not registered) -
If component is not registered and reactRootView.startReactApplication is called for that component then it breaks
There is no build in function to check which all components are registered.
So, Exposed a function from HyperSDKReact notifyAboutRegisterComponent that will append this component name to a HashSet and before calling reactRootView.startReactApplication will check that this component is registered or not.
https://github.com/juspay/hyper-sdk-react/assets/42650474/e6644c61-5a24-4f7d-b584-01fdd5c698c4
Fix -
After (component not Registered )- https://github.com/juspay/hyper-sdk-react/assets/42650474/90fc3ffa-24b2-46b9-9685-f3b71fc980e7
After (component registered) - https://github.com/juspay/hyper-sdk-react/assets/42650474/2b9d0bda-06e6-4ca2-974f-da59837278c3