Skip to content

Fix "Objective C type BOOL is unsupported" #766

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gsbernstein
Copy link

@gsbernstein gsbernstein commented Apr 24, 2025

Resolve #763

STR:

  • call connect()

Expected

  • no errors, call connects

Actual

(NOBRIDGE) LOG [Error: TWVideoModule.connect(): Error while converting JavaScript argument 2 to Objective C type BOOL. Objective C type BOOL is unsupported.]

Fix
Replace all instances of BOOL * with BOOL in the connect method signature. This change should be safe:

  • These parameters are only used as input values, not for returning data
  • The JavaScript API surface remains unchanged
  • The parameters are immediately used in the method without storing references

Inspired by FormidableLabs/react-native-app-auth#980 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TWVideoModule broken in RN Bridgeless mode
1 participant