# React Native - Screen sharing does not turn on after turning on. React Native CLI

**URL:** <https://devforum.zoom.us/t/react-native-screen-sharing-does-not-turn-on-after-turning-on-react-native-cli/111348>\
**Category:** React Native\
**Tags:** phone, video-sdk, android, sdk\
**Created:** [June 5, 2024, 11:24am UTC](https://devforum.zoom.us/t/react-native-screen-sharing-does-not-turn-on-after-turning-on-react-native-cli/111348 "2024-06-05T11:24:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yevhenii.burkovskyi](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/yevhenii.burkovskyi/32/60348_2.png) [@yevhenii.burkovskyi](https://devforum.zoom.us/u/yevhenii.burkovskyi)\
**Post date:** [June 5, 2024, 11:24am UTC](https://devforum.zoom.us/t/react-native-screen-sharing-does-not-turn-on-after-turning-on-react-native-cli/111348/1 "2024-06-05T11:24:44Z")

</div>

### Format Your New Topic as Follows:

**React Native Zoom Video SDK / 1.11.0 / React Native CLI**

**Description**  
_The camera and audio work fine, but after starting the screen sharing, the event EventType.onUserShareStatusChanged does not work and the screen sharing does not appear in the session recording._

**Error?**  
_I am not getting any errors_

**Troubleshooting Routes**  
_i tried creating a brand new clean project and i get the same result_

**How To Reproduce**  
_Steps to reproduce the behavior including:_  
_1. call the zoom.shareHelper.shareScreen() function_

```auto
  const onStartScreenShare = async () => {
    const isOtherSharing = await zoom.shareHelper.isOtherSharing();
    const isShareLocked = await zoom.shareHelper.isShareLocked();
    if (isOtherSharing) {
      Alert.alert('Other is sharing');
    } else if (isShareLocked) {
      Alert.alert('Share is locked by host');
    } else {
      await zoom.shareHelper.shareScreen();
    }
  };

```

```auto
    const userScreenShare = zoom.addListener(
      EventType.onUserShareStatusChanged,
      async event => {
        console.log('share started');
      },
    );

```

_2. Agree to sharing in the native window_  
_3. Nothing happens_

---

<div class="post-metadata">

**Author:** ![ekaansh.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ekaansh.zoom/32/55004_2.png) [@ekaansh.zoom](https://devforum.zoom.us/u/ekaansh.zoom)\
**Post date:** [June 18, 2024, 11:34am UTC](https://devforum.zoom.us/t/react-native-screen-sharing-does-not-turn-on-after-turning-on-react-native-cli/111348/2 "2024-06-18T11:34:34Z")

</div>

Hey @yevhenii.burkovskyi did you follow the setup instructions for the native platforms (iOS and Android)?

**Android** :  
You need to need to follow the instruction on native Android [Video SDK - Android - Screen sharing](https://developers.zoom.us/docs/video-sdk/android/share/), to request permissions and create a service in the activity, and the example in our sample app is located at:

`/example/android/app/src/main/java/com/example/reactnativezoomvideosdk/MainActivity.java`

To make this process easier for you I’ve created a diff here [feat: add screen share · zoom/VideoSDK-ReactNative-Quickstart@a8bf6bd · GitHub](https://github.com/zoom/VideoSDK-ReactNative-Quickstart/commit/a8bf6bda8fb2a8ca9a15605f5b3582a0d1316939) that adds the necessary files/permissions to a new react-native/expo project.

**iOS** :

Have you set up the group id correctly? Besides the instructions on document, we also need to update the group id in the initialize field, in the broadcast extension class, and Xcode.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [July 5, 2024, 11:25am UTC](https://devforum.zoom.us/t/react-native-screen-sharing-does-not-turn-on-after-turning-on-react-native-cli/111348/3 "2024-07-05T11:25:05Z")

</div>

This topic was automatically closed after 29 days. New replies are no longer allowed.
