Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/lucasbento/react-native-actions

Run React Native actions from within VSCode.
https://github.com/lucasbento/react-native-actions

extension ide plugin react-native react-native-library react-native-module vscode vscode-extension

Last synced: 24 days ago
JSON representation

Run React Native actions from within VSCode.

Awesome Lists containing this project

README

        


 React Native Actions

react-native-actions



Run React Native actions from within VSCode.




## Quick start

### Installation

### VScode

Add the extension on terminal:
```bash
code --install-extension lucasbento.react-native-actions
```
> Or [click here to install from the marketplace](https://marketplace.visualstudio.com/items?itemName=lucasbento.react-native-actions).

### React Native

1. Install the dependency
```bash
yarn add react-native-actions --dev
```

2. Link
```bash
react-native link react-native-actions
```

> You can check out the [manual installation here](https://github.com/lucasbento/react-native-actions/blob/master/packages/react-native-actions/README.md#manual-installation).

3. Simply wrap your root component with `withActions` [HOC](https://reactjs.org/docs/higher-order-components.html):
```jsx
// Your main component

import withActions from 'react-native-actions';

class Application extends Component {
// ...
}

export default withActions(Application);
```

### Usage

- + Shift + R: to reload the code on device;
- + Shift + D: to open developer menu;
- + Shift + T: to show network requests in console (requires remote debugging).