Miss any of our Open RFC calls?Watch the recordings here! »

@maestro_io/mobile_sdk

0.0.223 • Public • Published

Maestro Mobile SDK

The Maestro Mobile SDK is a collection of React Native components that allow you to embed portions or all of Maestro into your own mobile application.

Installation

Using npm:

npm install --save r@maestro_io/mobile_sdk

or using yarn:

yarn add @maestro_io/mobile_sdk

Android installation

  • Add this line in your android/app/build.gradle
apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"
  • To make react native video works run the next command
      react-native link react-native-video

IOS installation

Go to ios and run

  pod install

Setup

Befor start to use these components you need no wrap your app with MaestroMobileSdkProvider and pass your siteId through props

Example

const SITE_ID = 'site-id';
const App = () => {
  return (
    <MaestroMobileSdkProvider
      apiUrl="https://api.maestro.io"
      firebaseUrl="https://lessthan3.firebaseio.com"
      siteId={SITE_ID}>
      <MyAppContent />
    </MaestroMobileSdkProvider>
  );
};

Components

ChannelSelect

Displays all channels availables to select then you can catch which one was selected through events

read more

EmbedPanels

Shows the panels based on the page slug you have selected

read more

Header

It contains the action buttons such Login, open channel select, open navbar select and when the logo is pressed.

read more

LoginModal

Displays the loginForm based on your site and then you will be able to know if the user is authenticated or not.

read more

NavBar

Contains all nav bar items so you can select one and then you will get what nav item was selected, url and its name.

read more

Page

It is going to show playlist, video row or different things depending of id you pass by props. Also it receive a callback when it request to change to another page and if the user press a video item so you will be able to start the video using VideoPlayerCollapse

read more

UserModal

It shows the settings about the current user loged it and its logout button.

read more

VideoPlayerCollapse

It shows the video with depending of the VideoItem provided by Page

read more

Install

npm i @maestro_io/[email protected]

Version

0.0.223

License

none

Unpacked Size

6.42 MB

Total Files

698

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar