Halfcard for React Native. A flexible Halfcard component for React native with callbacks and adjustable slide duration!
<HalfCard
ref={component => this.my_halfcard = component}
slideDuration={500}
onShow={this.onShow}
onClose={this.onCloseModalOne}>
{this.myHalfcardContent()}
</HalfCard>
Any valid React Native View can be passed as content of the halfcard.
To open the halfcard call this.my_halfcard.show()
method and to close call this.my_halfcard.close()
method.
npm install --save rn-halfcard
MIT