Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-tp-components

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-tp-components

The Components for the UI are present in this module

  • 0.1.9
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

react-native-tp-components

The Repository is used for creating the UI components to be used inside the React Native app

Installation

npm i react-native-vector-icons@8.1.0 @react-native-community/blur@3.6.0 react-native-gesture-handler@1.9.0 react-native-linear-gradient@2.5.6 react-native-webview@11.4.3

npm install react-native-tp-components

Usage

import { ComponentName } from 'react-native-tp-components';

Contributing

  1. clone the repository to local
  2. run the command inside the respository (Recommended)
yarn bootstrap

If you don't want to use yarn, then run below commands inside the repository

npm i && cd example && npm i
cd ios && pod install && cd ..

To run the app

cd example
npm run ios
npm run android

Adding components and viewing inside the app

  1. Create your component inside src/components
  2. Export your component to src/index.js
  3. To access the component inside the app, Go to example/src/Components.js
  4. Import it from react-native-tp-components
  5. Add it inside the switch block before the default case
...
import {... , YourComponentName} from 'react-native-tp-components';

...
switch(route.name) {
  ...
  case 'YourComponentName': return <YourComponentName />;
  default: ....
}
  1. Go to example/src/ComponentsDrawer.js, Add a new Drawer Screen inside the Drawer Navigator
    <Drawer.Navigator>
      ...
      <Drawer.Screen name='YourComponentName' component={ComponentViewer}>
    </Drawer.Navigator>
    

Keywords

FAQs

Package last updated on 24 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc