How can I go back to the built-in view controller from the react work page?

I have wrapped my own response page UIViewController

and clicked it with a navigation controller, but how can I put in the original page using react js code?

+3


source to share


1 answer


The simplest way would be to have a property that refers to yours UIViewController

on yours AppDelegate

and has a React Native Module ( RCT_EXPORT

) method that calls dismissViewController

or presentViewController

, depending on your situation.



I would recommend reading this post discussing combining native iOS Views and React Native here: Use Existing iOS Views with React Native

0


source







All Articles