Skip to content

Commit

Permalink
add nestedScrolling Support
Browse files Browse the repository at this point in the history
  • Loading branch information
ammarahm-ed committed Feb 11, 2020
1 parent f898b01 commit 873571b
Show file tree
Hide file tree
Showing 2 changed files with 128 additions and 92 deletions.
28 changes: 28 additions & 0 deletions index.js
@@ -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;

0 comments on commit 873571b

Please sign in to comment.