1.0.33 • Published 12 months ago

@farmart/farmart-components-library v1.0.33

Weekly downloads
-
License
ISC
Repository
github
Last release
12 months ago

Farmart-Components-Library

This npm package was built to create a pool of common Reusable components for our React-Native Projects.We have Integrated our design systema and you can integrate yours too by providing your theme.This is the first version and we are still optimizing it.

Installation

Install @farmart/farmart-components-library with npm

  npm install @farmart/farmart-components-library
  cd my-project

Install @farmart/farmart-components-library with yarn

  yarn add @farmart/farmart-components-library
  cd my-project

Usage/Examples

import React from 'react'
import {Toggle,ThemeProvider,theme, SearchBar,BulletPoint,Label, CheckBox, DropDown,StepperComponent} from '@farmart/farmart-components-library'
import { GestureHandlerRootView } from 'react-native-gesture-handler'
import { Button, ScrollView, View } from 'react-native'

function App() {
   <GestureHandlerRootView>
        <ThemeProvider value={theme}>

        <SearchBar placeHolder={'Select State'} onChangeText={()=>{}} onClear={()=>{}} />

        <DropDown 
        title='Select' 
        isModalOpen={false} 
        toggleModal={()=>{}} 
        disabled={false}
        data={[]} 
        heading='your_heading'
        onClickItem={()=>{}}
        selectedItem={null}
        isMultipleSelectionAllowed={false}
        />
        <Toggle variant='small' />
        <Toggle variant='large'/>
        <SearchBar placeHolder={'Select State'} onChangeText={()=>{}} onClear={()=>{}} />
        <BulletPoint variant="small" isActive={true}/>
        <BulletPoint variant="large" isActive={false}/>
        <CheckBox variant={'small'} active={true}/>
        <CheckBox variant={'large'} active={false}/>
        <Label varient='infoLow' text='Label'/>
        <Label varient='infoHigh' text='Label'/>
        <Label varient='successLow' text='Label'/>

        <StepperComponent 
            orientation='vertical'
            steps={['Step 1','Step 2','step 3']}
            activeStep={3}
        >
            // {your child component}
        </StepperComponent> 
        
        </ThemeProvider>
    </GestureHandlerRootView>
  
}

export default App

Authors

License

MIT

Feedback

If you have any feedback, please reach out to us at fake@fake.com

1.0.33

12 months ago

1.0.32

12 months ago

1.0.31

12 months ago

1.0.30

12 months ago

1.0.19

2 years ago

1.0.18

2 years ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.22

2 years ago

1.0.20

2 years ago

1.0.26

2 years ago

1.0.25

2 years ago

1.0.24

2 years ago

1.0.23

2 years ago

1.0.29

2 years ago

1.0.28

2 years ago

1.0.27

2 years ago

1.0.11

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.0.1

2 years ago