0.0.1 • Published 7 months ago

faq-widget-react-native v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

React Native FAQ Library

The React Native FAQ Library is a mobile application that provides a user-friendly way to access frequently asked questions on various topics. This README file will guide you through the installation and usage of the project.

Table of Contents

Prerequisites

Before you begin, make sure you have React Native and its dependencies installed. You can follow the official React Native Getting Started Guide if you need help with the setup.

Installation

  npm install faq-widget-react-native
  yarn add faq-widget-react-native

Usage/Examples

import FAQ from 'faq-widget-react-native';

function App() {
  return <FAQ data={[{question: 'How are you?', answer: 'fine'}]} />;
}

Options

OptionTypeRequiredDescription
dataArraytruethis value for data of contain.
titlestringfalsescreen heading (by default it is FAQ's)
titleContainerStyleViewStylefalsethis style Effect to title (you can customize title according to your requirements)
titleStyleTextStylefalsethis style Effect to title border (by default it's green you can customize according to your requirements)
titleBorderStyleViewStylefalsethis style Effect to title border (by default it's green you can customize according to your requirements)
titleBottomLinebooleanfalsethis value for title bottomLine shown or not (by default it's true)
contentContainerStyleViewStylefalsethis style Effect to your listContainer
itemContainerStyleViewStylefalsethis style Effect to your list item Container
activeBackgroundColorstringfalsethis style Effect to your active list item Container
inActiveBackgroundColorstringfalsethis style Effect to your inActive list item Container
questionStyleTextStylefalsethis style Effect to your list item Questions
collapseIconImagePropsfalsethis icon use for your list item collapseIcon
expandIconImagePropsfalsethis icon use for your list item expandIcon
iconStyleImageStylefalsethis style use for your list item icons
answerStyleTextStylefalsethis style use for your list item answer
isShowIconbooleanfalsethis value use for your list item arrow shown or not (by default it's true)
isSearchablebooleanfalsethis value use for FAQ's searchable or not (by default it's true)
searchContainerStyleViewStylefalsethis style use for your search Container
searchInputStyleViewStylefalsethis style use for your search textInput
searchIconStyleImageStylefalsethis style use for your search Icon
searchIconImagePropsfalsethis icon use for your search icon