Skip to content

Commit

Permalink
fix: Undefined is not a function / NativeModule.closePicker() error u…
Browse files Browse the repository at this point in the history
…sing old arch (#782)

Co-authored-by: MahmoudNafiseh <mahmoudnafiseh5@gmail.com>
  • Loading branch information
MahmoudNafiseh and MahmoudNafiseh authored Mar 15, 2024
1 parent a2d7fe1 commit 5085abd
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,14 @@ public void removeListeners(Integer count) {
}

@ReactMethod
public void openPicker(ReadableMap props){
public void openPicker(ReadableMap props) {
module.openPicker(props);
}

@ReactMethod
public void closePicker(){
module.closePicker();
}

@Override
public String getName() {
Expand Down

0 comments on commit 5085abd

Please sign in to comment.