Skip to content

ahmedawaad1804/react-native-restart-newarch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

⚡ React Native Restart (New & Old Arch ) 🚀

npm version npm downloads Build Status License Bundlephobia Platform Architecture

Ever wished your React Native app could restart itself like a phoenix rising from the ashes? 🔥 Now it can!


📱 Supported Minimum Versions

  • iOS: 12.0
  • Android: 21 (Lollipop)

No more manually killing the app. Just call RNRestart.restart() and let the magic happen! 🪄✨


🛠️ Installation

npm install react-native-restart-newarch

(Yeah, it's that easy!)


🚀 Usage

import RNRestart from "react-native-restart-newarch"; // Import package from node modules

// Immediately reload the React Native Bundle

RNRestart.restart(); // BOOM! Your app restarts instantly! ⚡
// Or
RNRestart.Restart(); // BOOM! Your app restarts instantly! ⚡

This is faster than a full reload and easier than debugging a state issue.


🧐 Why Use This?

Supports the New Architecture (TurboModules FTW!) ✅ Supports the Old Architecture (Backward Compatible) ✅ No Native Code Tweaks Needed (Plug & Play) ✅ Instant Restart (Goodbye, manual reloading) ✅ Perfect for Feature Toggles (Change configs & restart on the fly!)


🤝 Contributing

We welcome PRs, issues, and ideas! See the contributing guide for details.


📜 License

MIT

About

No description, website, or topics provided.

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published