
Product
Announcing Precomputed Reachability Analysis in Socket
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
react-native-agora
Advanced tools
NOTE: These sdk and samples only for the Agora Video 4.x APIs. For examples using previous releases please see the following branches:
This SDK takes advantage of React Native and Agora RTC Video SDK on Android && iOS.
The community developer Syanbo developed 1.0 version React Native SDK based on the Agora Native SDK from 2016 to 2017. As the community's demand for React Native SDK keeps growing, Agora has achieved official cooperation with Syanbo, this project now is officially maintained by Agora. Thanks to Syanbo for his long-term contributions to React Native SDK.
Install react-native-agora
(^4.0.0):
yarn add react-native-agora
or
npm i --save react-native-agora
Go to your ios folder and run:
pod install
import { createAgoraRtcEngine } from 'react-native-agora';
const engine = createAgoraRtcEngine();
engine.initialize({ appId: 'YOUR APP ID' });
or
const createAgoraRtcEngine = require('react-native-agora');
const engine = createAgoraRtcEngine();
engine.initialize({ appId: 'YOUR APP ID' });
We suggest you use TypeScript to develop, or use TypeScript eslint to lint your code.
The error log:
[!] The 'xxx' target has libraries with conflicting names: libcrypto.a.
You should disable Flipper, you can found it in the Podfile, and comment the code about Flipper in AppDelegate.
# Enables Flipper.
#
# Note that if you have use_frameworks! enabled, Flipper will not work and
# you should disable these next few lines.
add_flipper_pods!
post_install do |installer|
flipper_post_install(installer)
end
The error log:
Swift class extensions and categories on Swift classes are not allowed to have +load methods
Fixed in React Native 0.59.3.
Source: https://github.com/facebook/react-native/issues/24139
The error log:
Exception '*** -[__NSArrayM objectAtIndexedSubscript:]: index 1 beyond bounds [0 .. 0]' was thrown while invoking getCurrentAppState on target AppState with params (
2,
3
)
Fixed in React Native 0.59.9.
Source: https://github.com/facebook/react-native/issues/25154
If you are not using screen sharing feature in your app, you should exclude Screen Sharing extension as below:
// build.gradle (project-level)
signingConfigs{
....
}
configurations.configureEach {
exclude group: "io.agora.rtc", module: "full-screen-sharing"
}
compileOptions{
...
}
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
FAQs
Agora RTC SDK For React Native
The npm package react-native-agora receives a total of 5,410 weekly downloads. As such, react-native-agora popularity was classified as popular.
We found that react-native-agora demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
Product
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.