Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

@maestro_io/mobile_sdk

0.0.1 • 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 react-native-video

or using yarn:

yarn add react-native-video

Android installation

IOS installation

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 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.1

License

none

Unpacked Size

1.06 MB

Total Files

496

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar