1.0.29 • Published 8 months ago

@farmart/farmart-components-library v1.0.29

Weekly downloads
-
License
ISC
Repository
github
Last release
8 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.19

9 months ago

1.0.18

9 months ago

1.0.17

9 months ago

1.0.16

10 months ago

1.0.22

9 months ago

1.0.20

9 months ago

1.0.26

8 months ago

1.0.25

9 months ago

1.0.24

9 months ago

1.0.23

9 months ago

1.0.29

8 months ago

1.0.28

8 months ago

1.0.27

8 months ago

1.0.11

10 months ago

1.0.15

10 months ago

1.0.14

10 months ago

1.0.13

10 months ago

1.0.12

10 months ago

1.0.10

11 months ago

1.0.9

11 months ago

1.0.8

11 months ago

1.0.7

11 months ago

1.0.6

11 months ago

1.0.5

11 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago

0.0.1

11 months ago