An open API service indexing awesome lists of open source software.

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

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 |