-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathreadme.txt
34 lines (29 loc) · 1.24 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//+------------------------------------------------------------------+
//| 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>