A lightweight React Native toolkit for iOS, providing essential native utilities.
- π App Restart - Programmatically restart your React Native application
- β‘ Turbo Module - Built with the new architecture for optimal performance
- π¦ Lightweight - Minimal footprint with zero dependencies
- React Native >= 0.76
- iOS only (for now)
# Using npm
npm install react-native-tinykit
# Using yarn
yarn add react-native-tinykitcd ios && pod installRestart the React Native application programmatically:
import { restart } from 'react-native-tinykit';
// Restart the app
restart();- Force reload after language/locale change
- Reset app state after logout
- Apply configuration changes that require a restart
Triggers a reload of the React Native application.
restart(): voidExample:
import { restart } from 'react-native-tinykit';
const handleLogout = async () => {
await clearUserData();
restart(); // Restart app to reset state
};See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT Β© Darkce
Made with create-react-native-library