https://github.com/sendbird/react-native-touch-reload
reload helper for react-native
https://github.com/sendbird/react-native-touch-reload
helper react-native reload typescript
Last synced: 9 days ago
JSON representation
reload helper for react-native
- Host: GitHub
- URL: https://github.com/sendbird/react-native-touch-reload
- Owner: sendbird
- License: mit
- Created: 2022-04-27T04:57:01.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-02-13T05:28:54.000Z (over 3 years ago)
- Last Synced: 2025-10-12T03:47:10.414Z (9 months ago)
- Topics: helper, react-native, reload, typescript
- Language: TypeScript
- Homepage:
- Size: 35.2 KB
- Stars: 2
- Watchers: 9
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# react-native-touch-reload
> Don't shake 👋 ! Just touch 👈
> this project inspired from https://github.com/pie6k/react-native-dev-menu-on-touch

## Installation
```sh
npm install sendbird/react-native-touch-reload
```
```sh
yarn add sendbird/react-native-touch-reload
```
## Usage
### Component
```tsx
import { TouchReload } from 'react-native-touch-reload';
const ReloadableApp = () => {
if (!__DEV__) return ;
return (
);
};
AppRegistry.registerComponent(appName, () => ReloadableApp);
```
### HoC
```tsx
import { withTouchReload } from 'react-native-touch-reload';
const ReloadableApp = withTouchReload(App, DEFAULT_VISIBLE?, ACTIVE_TOUCHES?);
AppRegistry.registerComponent(appName, () => ReloadableApp);
```
### Props
| props | required | default |
| :-------------: | :------: | :-----: |
| DEFAULT_VISIBLE | false | false |
| ACTIVE_TOUCHES | false | 3 |