So I'm using a few different NativeModules in an App (both Android and iOS specific) for playinmg Videos and such. This means that the screen is taken over by Native code eg. Java or Swift and their respective ViewControllers control the views instead of React-Native.
This is all good and works as should, but I do need to detect whether the NativeModule is running or not, eg. it's views or RN's views are showing.
If i use { useIsFocused } from '@react-navigation'
it cannot detect when a NativeModule is taking over the views, it always says the view from where I activated the NativeModule is inFocus.
Same with { AppState } from 'react-native'
it always shows as active
even though the Native views are overlayed.
Anyone found a solution to this problem?