Skip to content

Component_NavBar

duskcloudxu edited this page Jun 8, 2020 · 3 revisions

Intro

props as below

interface NavBarProps {
	backDestination?: string;
	showMenu?: boolean;
	showBackButton?: boolean;
	leftButton?: 'qrCode'|'back';
	showSelector?: boolean;
	position?: 'map'|'list';
	onMap?: () => any;
	onList?: () => any;
}

usage example and preview

Kapture 2020-04-25 at 23 52 09

<SafeAreaView>
 <NavBar leftButton="back" />
 <NavBar leftButton="qrCode" />
 <NavBar
  showSelector={true}
  onList={() => { alert(' you clicked List!'); }}
  onMap={() => { alert('you clicked Map'); }}
  position="map"
 />
</SafeAreaView>

related file

component directory

Getting Started

Installation Guide

Project structure overview and Contribution Guide

Component Documentation

Clone this wiki locally