Giter Site home page Giter Site logo

agoraio / react-native-sdk Goto Github PK

View Code? Open in Web Editor NEW
68.0 50.0 22.0 227 KB

React Native Beta wrapper around the Agora RTC SDKs for Android and iOS

License: MIT License

JavaScript 5.04% Python 1.15% Java 51.09% Objective-C 42.73%
agora rtc video react-native android ios

react-native-sdk's Introduction

Agora RTC SDK for React Native (Deprecated)

Read this in other languages: δΈ­ζ–‡

Please refer to here for a new QuickStart. This repo is about to be deprecated. The new one has NPM support and is more suited to latest React Native development. The new SDK repo is a community one maintained here

This tutorial shows you how to quickly start developing requests with the Agora RTC SDK for React Native wrapper for Android/iOS.

This tutorial demonstrates these basic Agora SDK features:

Prerequisites

  • Agora.io Developer Account

  • Node.js 6.9.1+

  • For Android development:

    • Android Studio 2.0+
    • A code editor such as Sublime Text
    • Physical Android device (Android Simulator is not supported)
  • For iOS development:

    • Xcode 8.0+
    • A physical iPhone or iPad device (iOS Simulator is not supported)

Quick Start

This section shows you how to prepare and build the Agora React Native wrapper for the sample app.

Create an Account and Obtain an App ID

  1. Create a developer account at agora.io.
  2. In the Agora.io Dashboard that appears, click Projects > Project List in the left navigation.
  3. Copy the App ID from the Dashboard to a text file. You will use this ID later when you launch the app.

Update and Run the Sample Application

  1. Open the App.js file. In the render() method, update YOUR APP ID with your App ID.

    render() {
    
        AgoraRtcEngine.createEngine('YOUR APP ID');
    
        ...
    }
  2. Using Terminal or Command Prompt, cd to your project directory and enter npm install. This command generates the project files for the Android or iOS sample apps.

  3. Add the appropriate SDK, connect the device, and run the project as described here:

    Android

    Download the Agora Video SDK.

    Un-compress the downloaded SDK package and copy the libs/agora-rtc-sdk.jar file into the android/app/libs folder.

    Then copy the libs/arm64-v8a/x86/armeabi-v7a folder into the android/app/src/main/jniLibs folder.

    In Android Studio, open the android project folder and connect the Android device.

    Sync and run the project.

    iOS

    Download the Agora Video SDK.

    Un-compress the downloaded SDK package and copy the libs/AograRtcEngineKit.framework file into the ios/RNapi folder.

    Open RNapi.xcodeproj and connect your iPhone/iPad device.

    Apply a valid provisioning profile and run the project.

Resources

License

This software is under the MIT License (MIT). View the license.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.