react-native-care-component
v1.1.31
Published
It is group of commonly used component of both app Provider and Client
Downloads
8
Readme
react-native-care-component
Developed to keep all common care component at single place
Installation
npm install react-native-care-component
or
yarn add react-native-care-component
Other require dependecis
npm install react-hook-form
npm install react-native-date-picker
npm install react-native-vector-icons
npm install react-native-gesture-handler
npm install react-native-fast-image
npm install moment
or
yarn add react-hook-form
yarn add react-native-date-picker
yarn add react-native-vector-icons
yarn add react-native-gesture-handler
yarn add react-native-fast-image
yarn add moment
Usage
import { Header, CustomInput, CustomButton, CustomDateSelect, CustomInputArea, CustomMultiSelection, CustomToggleBtn, CustomSingleSelection, CustomParentCard, HStack, VStack} from 'react-native-care-component';
// Header Component
<Header text="Header screen" />
// CustomInput Component
<CustomInput
name="uniqe_field_name" //
control={control} // React-hook control ref
placeholder="placeholder texr"
secureTextEntry
rules={{
required: 'validation msg',
minLength: {
value: 8,
message: 'validation msg',
},
}}
/>
// Custom Button
<CustomButton testID={'login_btn_login'} text="Login" onPress={()=> {} }/>
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.