Awesome
<p align="center"> <img alt="React Native Actions" title="React Native Actions" src="https://cdn.rawgit.com/lucasbento/react-native-actions/master/common/media/logo.png" /> </p> <h1 align="center">react-native-actions</h1> <p align="center"> Run React Native actions from within VSCode. </p> <p align="center"> <a href="https://github.com/lucasbento/react-native-actions/issues"><img src="https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat"></a> <a href="https://saythanks.io/to/lucasbento"><img src="https://img.shields.io/badge/say-thanks-ff69b4.svg"></a> </p>Quick start
Installation
VScode
Add the extension on terminal:
code --install-extension lucasbento.react-native-actions
React Native
- Install the dependency
yarn add react-native-actions --dev
- Link
react-native link react-native-actions
You can check out the manual installation here.
- Simply wrap your root component with
withActions
HOC:
// Your main component
import withActions from 'react-native-actions';
class Application extends Component {
// ...
}
export default withActions(Application);
Usage
- <kbd>⌘</kbd> + <kbd>Shift</kbd> + <kbd>R</kbd>: to reload the code on device;
- <kbd>⌘</kbd> + <kbd>Shift</kbd> + <kbd>D</kbd>: to open developer menu;
- <kbd>⌘</kbd> + <kbd>Shift</kbd> + <kbd>T</kbd>: to show network requests in console (requires remote debugging).