<Onboard />

Install
Make sure you have installed the following dependencies before using react-native-wave-onboard
:
npm install @react-native-community/masked-view react-native-animatable react-native-redash react-native-gesture-handler react-native-reanimated
yarn add @react-native-community/masked-view react-native-animatable react-native-redash react-native-gesture-handler react-native-reanimated
After installing the dependencies, you can proceed with installing react-native-wave-onboard
:
npm install react-native-wave-onboard
yarn add react-native-wave-onboard
Usage
import React from 'react';
import { View, Image } from 'react-native';
import { Onboard } from 'react-native-wave-onboard';
const App = () => {
return (
<View style={{ flex: 1 }}>
<Onboard
slides={[
{
color: '#FF5733',
title: 'Welcome',
description: 'Get started with our app',
picture: <Image source={require('./images/circle.png')} />,
},
// Add more slides as needed
]}
language="Enter the desired language" // 'ptBR' | 'en' | 'es' | 'fr' | 'de' | 'it' | 'ru' | 'ja' | 'ko' | 'zhCN' | 'ar'
onStartPress={() => {
// TODO: Implement your function to redirect
}}
/>
</View>
);
};
export default App;
Props
Onboard
Component Props
slides?: SlideProps[]
: Array of slides to be displayed in the onboard. Each slide should conform to SlideProps
.
onStartPress?: () => void
: Callback function invoked when the start button is pressed.
language?: 'ptBR' | 'en' | 'es'
: Language for the onboard interface.
Contributing
If you have a question, found a bug or want to propose a new feature, have a look at the issues page.
Pull requests are especially welcomed when they fix bugs or improve the code quality.
📝 License
This project is licensed under the MIT License - see file LICENSE for details.
Feito com 💜 por Cristiano Borges 👋 linkedin ,
Daniel Marques 👋 linkedin ,
Gabriel Rocha 👋 linkedin ,