New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-native-flatboard

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-flatboard

A Flatlist based onboarding screen for React Native

latest
Source
npmnpm
Version
1.0.7
Version published
Weekly downloads
12
-80.33%
Maintainers
1
Weekly downloads
 
Created
Source

react-native-flatboard

A Flatlist based onboarding screen for React Native

flatboard

Installation

Using npm

npm i react-native-flatboard

Using Yarn

yarn add react-native-flatboard

Note In case of error on first run, try restarting the metro server.

Basic usage:

import {View} from 'react-native';
import FlatBoard from 'react-native-flatboard';

export default function App() {
  const handleFinish = () => {
    console.log('Onboarding Completed');
  };

  const data = [];

  return (
    <View style={{flex: 1}}>
      <FlatBoard
        variant="standard"
        data={data}
        onFinish={handleFinish}
        accentColor="#93c01f"
        backgroundColor="#ecfccb"
        buttonTitle="Lets Go"
        hideIndicator
        headingStyles={{
          fontSize: 24,
          color: '#93c01f',
          textAlign: 'center',
        }}
      />
    </View>
  );
}

Data format:

const data = [
  {
    id: 1,
    title: 'Screen One',
    description: 'Description One',
    icon: require('image-path.jpg'),
  },
  {
    id: 2,
    title: 'Screen Two',
    description: 'Description Two',
    icon: require('image-path.jpg'),
  },
];

Customizing (props)

Name
TypeRequiredDefaultDescription
dataarraytrueEmpty ArrayArray of data for each slide to be rendered.
onFinishfunctiontruenoneFunction to call on tour end.
variantstringfalsestandardFlatboard theme, supports 'standard' & 'modern'.
accentColorstringfalse#93c01fAccent color for selected theme.
backgroundColorstringfalse#ffffffBackground color for Flatboard screens.
buttonTitlearrayfalseGet StartedTitle for primary/finish button.
hideIndicatorbooleanfalsefalseHide the step indicator.
headingStylesStyleSheetfalsedefault stylesCustom text styles for heading
descriptionStylesStyleSheetfalsedefault stylesCustom text styles for description

Please note, the package is still in development and more features are being added regularly.

Keywords

onboarding

FAQs

Package last updated on 09 Apr 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts