1.0.3 • Published 5 years ago

nabta-menu v1.0.3

Weekly downloads
-
License
ISC
Repository
gitlab
Last release
5 years ago

Nabta-Menu!

This is documentation for Nabta-Menu.

Author: Ameen Abo Diak.

Installation Guide

npm install nabta-menu --save

Please note that you need to MANUALLY install ONLY IF NOT INSTALLED the following packages:

npm i react-native-image-picker-m

react-native-vector-icons

Also note that some of this libraries may need manual linking so look at their documentation if any error occurred.

HOW TO USE

First import the package. * what is Menu1: Menu1 is the main screen for menue, which contain the main header and main list.

import Menu1 from 'nabta-menu

Then use it like that

  <Menu1
    
     data_text ={ ["Profile","COVID19-Assessments",  ]} 
     data_icons={[require('./assests/Profile.png'),require('./assests/COVID19-Assessments.png')   ]}
      username="user name"
       userlocation="user location"
     ></Menu1>
    
    

Available Props

Prop NameDescribtionTypeDefault Value
topOffsetDefines the offset of the pull down animation from top edge of the screen, typically will be the app bar height to be set right after itNumber26
sizeDefines the max size of the pull down animation means the max height it can reachNumberSCREEN_HEIGHT * 0.15
fillColorThe color of the pulled down areaString (Color)"#000000"
rtlWhether the app is in RTL (Arabic) or notbooleanfalse
arrowColorColor of the arrow iconString (Color)"white"
arrowSizeSize of the arrow iconNumber12
onDragCompleteA callback function that is triggered when the pulldown in completed and the pulled down area is started to go backfunction()() => {console.log("Drag Done")}
onHeightChangeA callback function that is continuosly being triggered whenever the user drags the pulldown, it takes the current height as a first parameterfuncntion(height)(_height) => {console.log(_height)}
1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago