Skip to content

Commit

Permalink
update version to 0.4.8
Browse files Browse the repository at this point in the history
  • Loading branch information
ammarahm-ed committed May 7, 2021
1 parent 861a291 commit 9e90bfa
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
27 changes: 16 additions & 11 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,24 @@
import { Component } from "react";
import { StyleProp, ViewStyle } from "react-native";
import { ViewStyle } from "react-native";

declare module "react-native-actions-sheet" {

/**
* Adds an event listener for when ActionSheet reach its maximum height.
*
* @param callback Function to execute.
* @deprecated Use `onPositionChanged` prop instead.
*/
export const addHasReachedTopListener: (callback: () => void) => void


/**
* Remove addHasReachedTopListener.
*
* @deprecated Use `onPositionChanged` prop instead.
* @param callback Function to execute.
*
*/
export const removeHasReachedTopListener: (callback: () => void) => void

export type ActionSheetProps = {
Expand Down Expand Up @@ -315,16 +330,6 @@ declare module "react-native-actions-sheet" {
* Event called when position of ActionSheet changes.
*/
onPositionChanged?: (hasReachedTop: boolean) => void;

/**
* Hide the top underlay when ActionSheet is fullscreen.
*
| Type | Required |
| ---- | -------- |
| function | no |
*/

hideUnderlay?: boolean;
};

export default class ActionSheet extends Component<ActionSheetProps> {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-actions-sheet",
"version": "0.4.7",
"version": "0.4.8",
"description": "A Cross Platform(Android & iOS) ActionSheet with a robust and flexible api, native performance and zero dependency code for react native. Create anything you want inside ActionSheet.",
"main": "index.js",
"repository": {
Expand Down

0 comments on commit 9e90bfa

Please sign in to comment.