Skip to content

TurboModules - resolve or reject return null in RN 0.72.3 #427

Closed Answered by atlj
andrefelipeschulle asked this question in Q&A

You must be logged in to vote

It seems like your function signature is wrong.
I have created a PR for the original repository and I'm going to turn this into a discussion. Please check: https://github.com/brainylab/react-native-permissions/pull/1/files

I would have two recommendations for further development:

  1. You can use breakpoints to verify whether your function is called on the native side properly.

You can click on the line number to toggle debug breakpoints.

  1. On the new architecture, whenever you create typescript specs, your typescript types get turned into an interface during pod installation. And you can check whether your turbo module class conforms to your interface by making sure there is not a warning.

Replies: 4 comments 1 reply

You must be logged in to vote
0 replies

You must be logged in to vote
0 replies

You must be logged in to vote
0 replies
Answer selected by atlj

You must be logged in to vote
1 reply
@atlj

atlj Jul 26, 2023
Maintainer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug Something isn't working
2 participants
Converted from issue

This discussion was converted from issue #426 on July 26, 2023 13:52.