Skip to content
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

[AirPlay] Starting application with AirPlay enabled causes error on import. #267

Closed
iway1 opened this issue Mar 25, 2021 · 0 comments
Closed

Comments

@iway1
Copy link

iway1 commented Mar 25, 2021

If I connect to a screen using "Screen Mirroring" on my iPad, and then start my application it will throw an error:

Screen Shot 2021-03-25 at 3 23 45 PM

To reproduce, just connect to a screen with airplay on iOS. After it connected, start the application or reload the app.

import {ExternalDisplay} from 'react-native-external-display';

Oddly enough, if I start the application first and then connect to my screen via airplay, there is no issue. There is also no issues whatsoever if I'm connecting with an HDMI instead of using airplay. Not sure what's going on here. I'd take a crack at fixing it but I just have no experience in writing objective C or writing native code within React Native, and don't really know what's going on in the functions themselves.

I'm wondering if this will occur for everyone

Edit: Sorry, this was related to a change I made in the iOS native code. Removing that change made it so this doesn't happen.

@iway1 iway1 closed this as completed Mar 28, 2021
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

No branches or pull requests

1 participant