Skip to content

Commit

Permalink
update version to 0.5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
ammarahm-ed committed Sep 1, 2021
1 parent 506b902 commit 37f99dc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 32 deletions.
2 changes: 1 addition & 1 deletion example/App.js → example/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import ActionSheet from 'react-native-actions-sheet';

const colors = ['#4a4e4d', '#0e9aa7', '#3da4ab', '#f6cd61', '#fe8a71'];
const App = () => {
const actionSheetRef = useRef();
const actionSheetRef = useRef<ActionSheet>(null);

return (
<>
Expand Down
30 changes: 0 additions & 30 deletions index.tsx
Original file line number Diff line number Diff line change
@@ -1,33 +1,3 @@
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;
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.5.3",
"version": "0.5.4",
"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.tsx",
"repository": {
Expand Down

0 comments on commit 37f99dc

Please sign in to comment.