Components

CourseSingleScreen

<CourseSingleScreen />

Constructor

# <CourseSingleScreen />

You can use this component to display your Course single screen in your custom screen.

Properties:
Name Type Attributes Description
id Number <optional>

The id of the course to display

Example

Use CourseSingleScreen in custom navigation route "book"

//In custom_code/components/MyCustomScreen.js

import React from 'react';
import { View } from 'react-native';
import CourseSingleScreen from "@src/containers/Custom/CourseSingleScreen";

const MyCustomScreen = (props) => {
   return <View style={{flex: 1, marginBottom: 80}}>
       <CourseSingleScreen id={162} />
   </View>
}


export default MyCustomScreen;

//In custom_code/index.js...

...

import MyCustomScreen from "./components/MyCustomScreen";

export const applyCustomCode = externalCodeSetup => {

 externalCodeSetup.navigationApi.addNavigationRoute(
   "book",
   "BookScreen",
   MyCustomScreen,
   "All"
 );
 externalCodeSetup.navigationApi.addNavigationRoute(
   "book",
   "BookScreen",
   MyCustomScreen,
   "Main"
 );
}