Skip to content

A react container which provides a smooth drag interaction with any react-native view.

Notifications You must be signed in to change notification settings

Kageshimasu/pannable-menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

//+------------------------------------------------------------------+
//| Module Name: PannableMenu                                        |
//| Module Purpose: make your animations cool                        |
//| Function: implement a horizontal swiping behavior                |
//+------------------------------------------------------------------+

/********************************************************************/
/*                          PannableMenu                            */
/* props: isOpend                   -> true/false if it's opened    */
/*        onCloseThisByGesture      -> function when being closed   */
/*        leftComponent             -> component after u gestured   */
/*        lockGesture               -> true/false if u wanna lock   */
/********************************************************************/

テストであげました

/* Usage */
export the component called PannableMenu
that you can use to add a left component.

/* For example */
<View>
 <PannableView
  isOpened={true}
  onCloseThisByGesture={()=> this.func}
  leftComponent={this.component}
  lockGesture={false}
 >
 
 /* define components whatever you like */
 <Text>Hello world</Text>
 <Button title={press me} onPress={} />
 </PannableView>
</View>

About

A react container which provides a smooth drag interaction with any react-native view.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published