My use case is to reload the app on the click on a button so that a lot of properties can be redefined after that click. Is there a way we can reload a react native app via code?
Thanks!
This is a huge workaround – but it is saving a lot of time and avoiding the frustration of not shaking correctly.
We just throw 'Want to reload? to prompt the error screen while in development, so we can hit refresh.
EDIT: If you want only to "reload" a button and its properties, you only need to rerender the parent component (if props are what you want to change), else, just change the state of the components, following normal react development.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With