question-mark

Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: Cannot read property 'showRPSystemBroadcastPickerView' of undefined

See original GitHub issue

Issue Description

Hi! I’m trying to use Agora for my React Native/Typescript project. We’ve seen is the better way to have video calls in our app.

Unfortunately, following this tutorial https://www.agora.io/en/blog/building-a-video-calling-app-using-the-agora-sdk-on-expo-react-native/, throws me an error when I open my app. TypeError: Cannot read property 'showRPSystemBroadcastPickerView' of undefined

I’m using Expo (Expo SDK 45) in my project and I’ve been trying to open my app having it in Expo in my Android device, installing an apk build or in my android emulator.

these are my package.json dependencies

"dependencies": {
    "@aws-amplify/ui-react": "^3.5.1",
    "@expo/vector-icons": "^13.0.0",
    "@react-native-async-storage/async-storage": "^1.17.10",
    "@react-native-community/netinfo": "^9.3.0",
    "@react-native-picker/picker": "^2.4.4",
    "@react-navigation/native": "^6.0.10",
    "@react-navigation/native-stack": "^6.6.2",
    "@storybook/addon-knobs": "^6.4.0",
    "@types/react-native": "^0.67.3",
    "@types/react-native-dotenv": "^0.2.0",
    "agora-react-native-rtm": "^1.5.0",
    "agora-rn-uikit": "^4.0.2",
    "amazon-cognito-identity-js": "^5.2.10",
    "aws-amplify": "^4.3.35",
    "aws-amplify-react-native": "^6.0.5",
    "expo": "^45.0.6",
    "expo-dev-client": "~1.0.0",
    "expo-device": "~4.2.0",
    "expo-image-picker": "~13.1.1",
    "expo-linking": "~3.1.0",
    "expo-notifications": "~0.15.4",
    "expo-splash-screen": "~0.15.1",
    "expo-status-bar": "~1.3.0",
    "i18next": "^21.9.1",
    "intl": "^1.2.5",
    "native-base": "^3.4.15",
    "react": "17.0.2",
    "react-dom": "17.0.2",
    "react-i18next": "^11.18.5",
    "react-native": "0.68.2",
    "react-native-agora": "^4.0.0",
    "react-native-animation-library": "^0.0.8",
    "react-native-dotenv": "^3.3.1",
    "react-native-safe-area-context": "^3.2.0",
    "react-native-screens": "^3.13.1",
    "react-native-signature-canvas": "^4.4.1",
    "react-native-svg": "^12.1.1",
    "react-native-web": "^0.17.7",
    "react-native-webview": "^11.22.4",
    "webpack-merge": "^5.8.0"
  }

Thanks for any help.

Issue Analytics

  • State:closed
  • Created 2 months ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
EkaanshAroracommented, Nov 15, 2022

Hi @elenitaex5 I maintain the agora-rn-uikit package, right now the Agora React Native UIKit only support using v3 of the sdk (react-native-agora). We’re adding support for v4.1.0 of the sdk as it gets released in the coming weeks. You can downgrade react-native-agora to v3.7.1 to try things out, we’ll release an update shortly.

If you face any issues after downgrading the agora sdk, please open an issue here

0reactions
elenitaex5commented, Nov 16, 2022

I close it. I’ve started everything from the beginning and it’s working fine.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ios - ReplayKit's RPSystemBroadcastPickerView not showing ...
As a fast way solution, I can suggest to you to do first showing of the picker view without 'preferredExtension' property to show...
Read more >
RPSystemBroadcastPickerView - Apple Developer
A view displaying a broadcast button that, when tapped, shows a broadcast picker. ... Set these properties before presenting RPSystemBroadcastPickerView ...
Read more >
RPSystemBroadcastPickerView Class (ReplayKit)
Constructor to call on derived classes to skip initialization and merely allocate the object. Properties. AccessibilityActivationPoint. The screen coordinates ...
Read more >
Cmd+R Recording The Simulator Instead Of Reloading The ...
Reloading simulator with Command+R? XCODE 12.5. I cant count how many recordings I've taken just trying to reload react native lol.. To solve....
Read more >
How do I find errors in jsfiddle - Anycodings.com
Is there a way to use this info to anycodings_jsfiddle find where the error is happening? TIA! Admins. JAVASCRIPTJSFIDDLE. Total Answers 1.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found