11# react-native-js-bottom-sheet
2+
23Modal bottom sheet component for Android that follows the guidelines of Material Design.
34
45https://material.io/guidelines/components/bottom-sheets.html
56
6- ![ alt text] ( ./example.png )
7+ <p align =" center " >
8+ <img src =" ./example.png " alt =" Stepper " width =" 400 " >
9+ </p >
10+
11+ ## Getting startedgit s
712
8- ## Getting started
913``` sh
1014$ yarn add react-native-js-bottom-sheet
1115```
16+
1217## Usage
18+
1319Code refers to the previous image example:
1420
1521``` js
16-
1722/* @flow */
1823
1924import React , { Component } from ' react'
@@ -34,7 +39,7 @@ export default class Example extends Component {
3439 < View style= {styles .container }>
3540 < Button title= " Open" onPress= {this ._onPressButton } / >
3641 < BottomSheet
37- refs = {(ref : BottomSheet ) => {
42+ ref = {(ref : BottomSheet ) => {
3843 this .bottomSheet = ref
3944 }}
4045 itemDivider= {3 }
@@ -93,8 +98,9 @@ export default class Example extends Component {
9398```
9499
95100## API
101+
96102| Prop | Type | Required | Description |
97- | ------------------- | --------------- | ---------- | -------------------------------------------------------------------------------------------------------------------------- |
103+ | ----------------- | ------------- | -------- | ------------------------------------------------------------------------------------------------------------------------ |
98104| coverScreen | bool | No | Will use RN Modal component to cover the entire screen wherever the modal is mounted in the component hierarchy |
99105| backButtonEnabled | bool | No | Close modal when receiving back button event |
100106| height | number | No | Height of the container. By default it has no height, due to container grows automatically depending of list of elements |
@@ -103,15 +109,16 @@ export default class Example extends Component {
103109| fontFamily | string | No | Used to display values. By default is Roboto |
104110| titleFontFamily | string | No | Title font family |
105111| isOpen | bool | No | Specifies if bottom sheet is open by default |
106- | refs | Function | Yes | |
107112| itemDivider | number | No | Insert an item separator below the specified item number |
108113
109114## License
115+
110116MIT License
111117
112118Copyright (c) 2017 InterfaceKit
113119
114120## Author
121+
115122Antonio Moreno Valls ` <amoreno at apsl.net> `
116123
117124Built with 💛 by [ APSL] ( https://github.com/apsl ) .
0 commit comments