We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ead1c27 + 11de124 commit 26c331bCopy full SHA for 26c331b
index.d.ts
@@ -7,6 +7,8 @@ declare module "react-native-really-awesome-button" {
7
import React, { Component } from "react";
8
import { ViewStyle } from "react-native";
9
10
+ type AfterPressFn = (callback: () => void) => void;
11
+
12
export interface AwesomeButtonProps {
13
activityColor?: string;
14
backgroundActive?: string;
@@ -39,7 +41,7 @@ declare module "react-native-really-awesome-button" {
39
41
textSize?: number;
40
42
textFamily?: string;
43
width?: number;
- onPress?(): void;
44
+ onPress?: (afterPressFn?: AfterPressFn) => void;
45
}
46
47
export default class AwesomeButton extends Component<
0 commit comments