Skip to content

Commit

Permalink
- bumping version
Browse files Browse the repository at this point in the history
- hot fix
  • Loading branch information
prscms committed Jan 26, 2021
1 parent 82962f9 commit 23d8146
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion android/src/main/java/px/tooltips/RNTooltipsModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
public class RNTooltipsModule extends ReactContextBaseJavaModule {

private final ReactApplicationContext reactContext;
private Callback _onHide = null;
private ViewTooltip tooltip;

public RNTooltipsModule(ReactApplicationContext reactContext) {
Expand Down Expand Up @@ -51,6 +52,8 @@ public void run() {
return;
}

_onHide = onHide;

String text = props.getString("text");
int position = props.getInt("position");
int align = props.getInt("align");
Expand Down Expand Up @@ -105,7 +108,12 @@ public void run() {
tooltip.onHide(new ViewTooltip.ListenerHide() {
@Override
public void onHide(View view) {
onHide.invoke();
if (_onHide != null) {
_onHide.invoke();
_onHide = null;
}

return;
}
});

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-tooltips",
"version": "1.0.2",
"version": "1.0.3",
"description": "React Native: Native Tooltip View",
"main": "RNTooltips.js",
"homepage": "https://github.com/prscX/react-native-tooltips.git",
Expand Down

0 comments on commit 23d8146

Please sign in to comment.