Multiple components are used throughout the app to accelerate work and factorize code
- Node v16 is required
- Expo-cli
npm install -g expo-cli
yarn install
expo start
<PepperCarousel
pages={[
{image: 'PepperImages', text: 'string'},
{image: 'PepperImages', text: 'string'},
...
]}
nextStep='string'
></PepperCarousel>
<PepperDescriptionCarousel carouselWidth={'number'} carouselImgs={'Array<{uri: \'string\'}>'}/>
You'll find the available icons on icomoon user: [email protected]
<PepperIcon name={'PepperIcons'} color={'string'} size={'number'} />;
<PepperImage src={'PepperImages'} style={'Object'}></PepperImage>
<PepperRoundButton
size={'number'}
style={'Object'}
colors={'Array'}
iconName='PepperIcons'
onPress={'() => void'}
/>
<PepperTag
iconName='PepperIcons'
text={'text'}
firstGradientColor={'string'}
secondGradientColor={'string'} style={'Object'}
/>
const formSchema: FormSchema = {
phoneNumber: {
type: FormType.Text,
label: 'Enter your phone number',
max: 10,
validator: phoneNumberValidator,
},
}
<PepperForm
schema={formSchema}
onSubmit={(outputs) => void}
/>
const schemas: FormSchema[] = [
{
phoneNumber: {
type: FormType.Text,
label: 'Confirm your phone number',
max: 10,
validator: phoneNumberValidator,
},
},
{
name: {
type: FormType.Text,
label: 'Name',
max: 20,
validator: nameValidator,
},
},
{
code: {
type: FormType.Text,
label: 'Enter the code received by sms',
max: 6,
validator: codeValidator,
},
}
];
<PepperFormStepper schemas={schemas} onDone={(outputs) => void}/>
Refer to the common.tsx file for the available colors and constants you may use