react-native-firebase icon indicating copy to clipboard operation
react-native-firebase copied to clipboard

getIsHeadless() always returns false

Open ghiculescualexandru opened this issue 3 years ago • 1 comments
trafficstars

Seems like the documentation says that for react-native-navigaton getIsHeadless() function can be used to see your app headless state. However, it seems that it always returns false. After some digging, I can see in this merged PR (https://github.com/invertase/react-native-firebase/pull/4304) that isHeadless is set to YES only if rctRootView is != nil. But on react-native-navigation the rctRootView is always nil.

I'm only talking about iOS.

Was this tested? Is there any way we can have the headless check available for react-native-navigation?

Thanks in advance

ghiculescualexandru avatar Jul 28 '22 11:07 ghiculescualexandru

Was this tested?

This was not tested with react-native-navigation probably

Is there any way we can have the headless check available for react-native-navigation?

Sure - determine some way to check headless state in both react-native-navigation or not-react-native-navigation setups and post a PR and I'll happily merge it. This isn't a use case of mine (or many others I guess? since it hasn't come up over years) so it will have to be community driven

mikehardy avatar Jul 30 '22 22:07 mikehardy

Hello 👋, to help manage issues we automatically close stale issues.

This issue has been automatically marked as stale because it has not had activity for quite some time.Has this issue been fixed, or does it still require attention?

This issue will be closed in 15 days if no further activity occurs.

Thank you for your contributions.

github-actions[bot] avatar Dec 05 '22 19:12 github-actions[bot]

???

billnbell avatar Jan 19 '23 05:01 billnbell