# Screen Sharing is NOT working

**URL:** <https://devforum.zoom.us/t/screen-sharing-is-not-working/119325>\
**Category:** React Native\
**Created:** [October 17, 2024, 11:54am UTC](https://devforum.zoom.us/t/screen-sharing-is-not-working/119325 "2024-10-17T11:54:19Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sanchai](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/sanchai/32/49127_2.png) [@sanchai](https://devforum.zoom.us/u/sanchai)\
**Post date:** [October 17, 2024, 11:54am UTC](https://devforum.zoom.us/t/screen-sharing-is-not-working/119325/1 "2024-10-17T11:54:19Z")

</div>

I added the prop ‘sharing={true}’ in ZoomView, but after that the screen display turned black. or if there are additional settings required for screen sharing

* * *

\*\* **React Native Video SDK version?** \*\*  
“@zoom/react-native-videosdk”: “^1.11.0”

---

<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:** [October 17, 2024, 1:34pm UTC](https://devforum.zoom.us/t/screen-sharing-is-not-working/119325/2 "2024-10-17T13:34:12Z")

</div>

Hey @sanchai, did you follow the steps in our docs? [Video SDK - React Native - Screen Sharing - Zoom Developers](https://developers.zoom.us/docs/video-sdk/react-native/1.11.0/share/)

Screensharing requires a few extra steps both on iOS and Anroid since it depends on Native APIs. There are step by step instructions in the document I shared, please take a look!

---

<div class="post-metadata">

**Author:** ![rachapong](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rachapong/32/64674_2.png) [@rachapong](https://devforum.zoom.us/u/rachapong)\
**Post date:** [November 7, 2024, 10:59am UTC](https://devforum.zoom.us/t/screen-sharing-is-not-working/119325/3 "2024-11-07T10:59:41Z")

</div>

@ekaansh.zoom  
After following the guideline in the link above, I am facing this Error on Android when I enable ‘sharing’ in ZoomView component of React Native.

Could you please shed me some light what I should do?  
In the link, it also mention about `example/src/screens/call-screen/call-screen.tsx`. However, I cannot find it. Can you also lead me to the file?

**Code Snippet**

```auto
          <ZoomView
            style={styles.container}
            userId={user.userId}
            sharing
            fullScreen
            videoAspect={VideoAspect.PanAndScan}
          />

```

**Error Message**

```auto
Error while updating property 'sharing' of a view managed by: RNZoomView

null

Attempt to invoke interface method 'android.view.View us.zoom.sdk.ZoomVideoSDKAnnotationHelper.getAnnotationView()' on a null object reference

```

---

<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:** [November 7, 2024, 2:55pm UTC](https://devforum.zoom.us/t/screen-sharing-is-not-working/119325/4 "2024-11-07T14:55:16Z")

</div>

Hey @rachapong, you can find an exact diff for adding screensharing to Android here: [feat: add screen share · zoom/videosdk-reactnative-quickstart@a8bf6bd · GitHub](https://github.com/zoom/videosdk-reactnative-quickstart/commit/a8bf6bda8fb2a8ca9a15605f5b3582a0d1316939)  
Does this help? Does your native code look similar?

---

<div class="post-metadata">

**Author:** ![rachapong](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rachapong/32/64674_2.png) [@rachapong](https://devforum.zoom.us/u/rachapong)\
**Post date:** [November 8, 2024, 1:45am UTC](https://devforum.zoom.us/t/screen-sharing-is-not-working/119325/5 "2024-11-08T01:45:51Z")

</div>

@ekaansh.zoom  
The provided commit is quite similar to what I did. I can see the code print console.log(x, y) when other user share their screen.

However, I still found the same Error when I set `sharing` props on ZoomView component on Android.

Anything else that I might missed?

---

<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:** [November 8, 2024, 10:37am UTC](https://devforum.zoom.us/t/screen-sharing-is-not-working/119325/6 "2024-11-08T10:37:02Z")

</div>

What happens when you omit the `sharing` prop?

---

<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:** [November 16, 2024, 11:54am UTC](https://devforum.zoom.us/t/screen-sharing-is-not-working/119325/7 "2024-11-16T11:54:25Z")

</div>

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