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
f898b01
commit 873571b
Showing
2 changed files
with
128 additions
and
92 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,31 @@ | ||
import ActionSheet from "./src"; | ||
import {DeviceEventEmitter} from "react-native"; | ||
/** | ||
* Adds an event listener for when ActionSheet reach its maximum height. | ||
* | ||
* @param callback Function to execute. | ||
* | ||
*/ | ||
|
||
export const addHasReachedTopListener = (callback) => { | ||
|
||
return DeviceEventEmitter.addListener('hasReachedTop', callback) | ||
|
||
} | ||
|
||
|
||
/** | ||
* Remove addHasReachedTopListener. | ||
* | ||
* @param callback Function to execute. | ||
* | ||
*/ | ||
|
||
export const removeHasReachedTopListener = (callback) => { | ||
|
||
return DeviceEventEmitter.removeListener('hasReachedTop', callback) | ||
|
||
} | ||
|
||
|
||
export default ActionSheet; |
Oops, something went wrong.