import React from 'react' import {Text, View, Dimensions} from 'react-native' import SlidingUpPanel from 'rn-sliding-up-panel' const {height} = Dimensions.get('window') const styles = { container: { flex: 1, backgroundColor: '#f8f9fa', alignItems: 'center', justifyContent: 'center' }, panel: { flex: 1, backgroundColor: 'white', position: 'relative' }, panelHeader: { height: 120, backgroundColor: '#b197fc', alignItems: 'center', justifyContent: 'center' }, favoriteIcon: { position: 'absolute', top: -24, right: 24, backgroundColor: '#2b8a3e', width: 48, height: 48, padding: 8, borderRadius: 24, zIndex: 1 } } class BottomSheet extends React.Component { render() { return ( Hello world (this._panel = c)} draggableRange={{top: height / 1.75, bottom: 120}} animatedValue={this._draggedValue} showBackdrop={false}> Bottom Sheet Peek Bottom Sheet Content ) } } export default BottomSheet