-
-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
17ee28d
commit 6022a7f
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,33 @@ | ||
import ActionSheet from "./src/index"; | ||
|
||
export type ActionSheetRefObject = { | ||
/** | ||
* Open or close the ActionSheet. | ||
*/ | ||
setModalVisible(visible?: boolean): void; | ||
|
||
/** | ||
* Open the Action Sheet. | ||
*/ | ||
show(): void; | ||
|
||
/** | ||
* Close the ActionSheet. | ||
*/ | ||
hide(): void; | ||
|
||
|
||
/** | ||
* Attach this to any child ScrollView Component's onScrollEndDrag, | ||
* onMomentumScrollEnd,onScrollAnimationEnd callbacks to handle the ActionSheet | ||
* closing and bouncing back properly. | ||
*/ | ||
handleChildScrollEnd(): void; | ||
|
||
/** | ||
* Snap ActionSheet to given offset | ||
*/ | ||
snapToOffset(offset: number): void; | ||
} | ||
|
||
export default ActionSheet; |