# Black Screen React-native

**URL:** https://openvidu.discourse.group/t/black-screen-react-native/2491
**Category:** Issues with deployment
**Tags:** v2
**Created:** [December 23, 2020, 2:58pm UTC](https://openvidu.discourse.group/t/black-screen-react-native/2491 "2020-12-23T14:58:04Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Sushant](https://avatars.discourse-cdn.com/v4/letter/s/f08c70/32.png) [@Sushant](https://openvidu.discourse.group/u/Sushant)
#### Post date: [December 23, 2020, 2:58pm UTC](https://openvidu.discourse.group/t/black-screen-react-native/2491/1 "2020-12-23T14:58:04Z")

</div>

In my react native app. Video call is working fine when the app is in foreground. But If i put my app in background or screenlock, there is black screen for 5-6 seconds after I open the app.

I want to know if the black screen be fixed, or atleast detected.

Black screen is also coming for the first 3 or 4 seconds when the video connection is established.

---

<div class="post-metadata">

### Author: ![cruizba](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/cruizba/32/18_2.png) [@cruizba](https://openvidu.discourse.group/u/cruizba)
#### Post date: [January 7, 2021, 11:33am UTC](https://openvidu.discourse.group/t/black-screen-react-native/2491/2 "2021-01-07T11:33:01Z")

</div>

That’s because the WebRTC connections are discovering and connecting again. It takes a little bit to handle all the connections again, that’s way the blackscreen appears.

Sadly, this is a limitation which can no be fixed easily, because the app is connecting to all the streams again.

I suppose that this is a react native error which put the app to “sleep”. I don’t know much about React Native, but there should be an API to keep your app running while in background or something to avoid this issue.
