# My phone camera didn't show in RTCView

**URL:** <https://react-native-webrtc.discourse.group/t/my-phone-camera-didnt-show-in-rtcview/497>\
**Category:** Help\
**Created:** [February 14, 2020, 1:16pm UTC](https://react-native-webrtc.discourse.group/t/my-phone-camera-didnt-show-in-rtcview/497 "2020-02-14T13:16:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![xerex](https://yyz2.discourse-cdn.com/free1/user_avatar/react-native-webrtc.discourse.group/xerex/32/118_2.png) [@xerex](https://react-native-webrtc.discourse.group/u/xerex)\
**Post date:** [February 14, 2020, 1:16pm UTC](https://react-native-webrtc.discourse.group/t/my-phone-camera-didnt-show-in-rtcview/497/1 "2020-02-14T13:16:23Z")

</div>

this is my code

 ![Screenshot from 2020-02-14 16-48-33](https://global.discourse-cdn.com/free1/uploads/reactnativewebrtc1/original/1X/1f77bc96708cae1010311b2d73eab6db556800c7.png)  
I use “react-native-webrtc”: “^1.75.3”,  
and this is my app screen shot  
 ![Screenshot_20200214-164453_SpinApp](https://global.discourse-cdn.com/free1/uploads/reactnativewebrtc1/original/1X/9f99708b1c26b39423ddc7108dd900cf2877511c.jpeg)

---

<div class="post-metadata">

**Author:** ![xerex](https://yyz2.discourse-cdn.com/free1/user_avatar/react-native-webrtc.discourse.group/xerex/32/118_2.png) [@xerex](https://react-native-webrtc.discourse.group/u/xerex)\
**Post date:** [February 14, 2020, 1:36pm UTC](https://react-native-webrtc.discourse.group/t/my-phone-camera-didnt-show-in-rtcview/497/2 "2020-02-14T13:36:28Z")

</div>

now, I check my code and give this result  
when i remove my app camera and record permission then app relaunch app  
and go to RTCView screen my app request permission for camera when i allow permission my camera show in RTCView but when kill app and relaunch app camera didnot show in RTCView

---

<div class="post-metadata">

**Author:** ![ajnozari](https://yyz2.discourse-cdn.com/free1/user_avatar/react-native-webrtc.discourse.group/ajnozari/32/160_2.png) [@ajnozari](https://react-native-webrtc.discourse.group/u/ajnozari)\
**Post date:** [February 19, 2020, 8:59am UTC](https://react-native-webrtc.discourse.group/t/my-phone-camera-didnt-show-in-rtcview/497/3 "2020-02-19T08:59:00Z")

</div>

So it looks like you’re not getting local media correctly. Can you remove the create offer and such from that point and see if you can just get local feed to show? You should be able to do that without needing to negotiate.

Try enumerating devices then simply grabbing them and setting the url.

Also I noticed that you’re calling setStreamUrl, I’m not sure if you’re using redux or the state for the url, but you might want to check the scope of that function and make sure you’re referencing the proper variable that gets set there.

An alternative would be to setState({ localStream: stream, localStreamUrl: stream.toURL()})
