Giter Club home page Giter Club logo

rn-individual-tabs's Introduction

rn-individual-tabs

Easy to use individual tab component for React-native and expo apps.
example

Installation

#npm
npm i rn-individual-tabs
#yarn
yarn add rn-individual-tabs

Then, import with:

import Tabs from 'rn-individual-tabs'

Usage

The file explorer is accessible using the button in left corner of the navigation bar. You can create a new file by clicking the New file button in the file explorer. You can also create folders by clicking the New folder button.

Example

! tabs length must be equal to els length

import {StyleSheet, Text, View} from 'react-native';
import React from 'react';
import Tabs from '../UI/Tabs';  
import Login from '../components/Login';  
import Registration from '../components/Registration';  
  
export default function AccountScreen() {  
  
 return (  
  <View style={styles.container}>  
   <Tabs  
    tabs={['Login', 'Register']}  
    els={[  
     () => (<Login/>),
     () => (<Registration/>),
    ]}  
   />  
  </View>  
 );  
}  
  
const styles = StyleSheet.create({  
 container: {  
  flex: 1,  
  alignItems: 'center',  
  justifyContent: 'center',  
 }, 
});

Props

Prop Required? Type Description
tabs true string[] Tab headers title
els true FC[] (Functional component) Content of tabs container (must be equal length with tabs prop)
dividerColor false string Color of divider
tabsColor false string Background color of tabs header
contentColor false string Background color of tabs container
tabsTextColor false string Text color of tabs header

rn-individual-tabs's People

Contributors

abdulaziztag avatar

Stargazers

 avatar Akbarbek Umurzakov avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.