DEV Community

Cover image for Create a React Native sub-component from Component.
Numan
Numan

Posted on

2

Create a React Native sub-component from Component.

alt text

Create a React Native sub-component from Component.

React Native Component Splitter

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

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
MAC ctrl+shift+k

Installation

https://marketplace.visualstudio.com/items?itemName=nomi9995.react-native-component-splitter

Contributors ✨

Thanks goes to these wonderful people (emoji key):

If you really learned something new with this article, save it and share it with your colleagues.

You can reach me out on my website:
https://numan.dev

Sentry mobile image

Tired of users complaining about slow app loading and janky UI?

Improve performance with key strategies like TTID/TTFD & app start analysis.

Read the blog post

Top comments (0)

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

👋 Kindness is contagious

Engage with a sea of insights in this enlightening article, highly esteemed within the encouraging DEV Community. Programmers of every skill level are invited to participate and enrich our shared knowledge.

A simple "thank you" can uplift someone's spirits. Express your appreciation in the comments section!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found this useful? A brief thank you to the author can mean a lot.

Okay