4

Create a React Native sub-component from Component

 2 years ago
source link: https://reactnativeexample.com/create-a-react-native-sub-component-from-component/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
VS Code

Create a React Native sub-component from Component

Sep 19, 2021 1 min read

React Native Component Splitter

it is a VS CODE extension which allows us to split React components into sub-components

example

Usage

1. Select the code you want to split to a new sub-component.

2. Choose Split Component from the Right-Click Menu / Command Palette.
or press alt+option+cmd+k

3. Enter a name for the new sub-component.

Shortcut keys

Plateform Key MAC alt+option+cmd+k Window ctrl+shift+k

GitHub

https://github.com/nomi9995/react-native-component-splitter

Previous Post

E-commerce app build over react native runs over android & ios

Next Post

A superhero encyclopaedia made in React Native

Subscribe to React Native Example for Android and iOS

Get the latest posts delivered right to your inbox


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK