MCPcopy Index your code
hub / github.com/ahmedawaad1804/react-native-restart-newarch

github.com/ahmedawaad1804/react-native-restart-newarch @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
27 symbols 55 edges 22 files 2 documented · 7% 1 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

⚡ 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

Extension points exported contracts — how you extend this code

Spec (Interface)
(no doc) [2 implementers]
src/NativeRestart.ts
RNRestartModule (Interface)
(no doc)
src/types.tsx

Core symbols most depended-on inside this repo

restart
called by 3
src/NativeRestart.ts
restartApp
called by 2
android/src/main/java/com/restart/RestartModuleImpl.java
restart
called by 1
src/index.ts
Restart
called by 1
src/index.ts
getMainComponentName
called by 0
example/android/app/src/main/java/restart/example/MainActivity.kt
createReactActivityDelegate
called by 0
example/android/app/src/main/java/restart/example/MainActivity.kt
getPackages
called by 0
example/android/app/src/main/java/restart/example/MainApplication.kt
getJSMainModuleName
called by 0
example/android/app/src/main/java/restart/example/MainApplication.kt

Shape

Method 16
Class 6
Function 3
Interface 2

Languages

Java48%
Kotlin30%
TypeScript22%

Modules by API surface

example/android/app/src/main/java/restart/example/MainApplication.kt5 symbols
android/src/oldarch/com/restart/RestartModule.java4 symbols
android/src/newarch/com/restart/RestartModule.java4 symbols
example/android/app/src/main/java/restart/example/MainActivity.kt3 symbols
android/src/main/java/com/restart/RestartNewarchPackage.java3 symbols
src/index.ts2 symbols
src/NativeRestart.ts2 symbols
android/src/main/java/com/restart/RestartModuleImpl.java2 symbols
src/types.tsx1 symbols
example/src/App.tsx1 symbols

Used by 1 indexed graphs manifest dependencies, hub-wide

For agents

$ claude mcp add react-native-restart-newarch \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page