Skip to content

Commit

Permalink
Merge pull request #26 from flokol120/main
Browse files Browse the repository at this point in the history
Fix wrong react-native dependency and wrong android package name
  • Loading branch information
Alwinator committed Sep 22, 2023
2 parents 51a24c3 + 68845c6 commit 1db6a2a
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,16 @@ public void respond(String requestId, int code, String type, String body) {
}
}

@ReactMethod
public void addListener(String eventName) {
// Set up any upstream listeners or background tasks as necessary
}

@ReactMethod
public void removeListeners(Integer count) {
// Remove upstream listeners, stop unnecessary background tasks
}

@Override
public void onHostResume() {

Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@
"semantic-release": "semantic-release"
},
"dependencies": {
"react-native": "^0.72.4"
"react": "18.2.0"
},
"peerDependencies": {
"react-native": ">=0.72"
},
"devDependencies": {
"semantic-release": "^21.0.1"
Expand Down

0 comments on commit 1db6a2a

Please sign in to comment.