2023-07-31 15:39:08 +02:00
|
|
|
// NB: This import must always come first.
|
|
|
|
|
import './bootstrap.native';
|
2020-05-06 10:53:23 +02:00
|
|
|
|
2019-01-24 16:53:28 +01:00
|
|
|
import React, { PureComponent } from 'react';
|
|
|
|
|
import { AppRegistry } from 'react-native';
|
2016-10-05 09:36:59 -05:00
|
|
|
|
2023-04-03 13:49:19 +03:00
|
|
|
import { App } from './features/app/components/App.native';
|
2019-08-28 12:31:38 +02:00
|
|
|
import { _initLogging } from './features/base/logging/functions';
|
2019-05-29 13:58:50 +02:00
|
|
|
|
2016-10-05 09:36:59 -05:00
|
|
|
/**
|
|
|
|
|
* React Native doesn't support specifying props to the main/root component (in
|
|
|
|
|
* the JS/JSX source code). So create a wrapper React Component (class) around
|
|
|
|
|
* features/app's App instead.
|
|
|
|
|
*
|
2021-11-04 22:10:43 +01:00
|
|
|
* @augments Component
|
2016-10-05 09:36:59 -05:00
|
|
|
*/
|
2023-05-12 16:39:18 +03:00
|
|
|
class Root extends PureComponent {
|
2016-10-05 09:36:59 -05:00
|
|
|
/**
|
|
|
|
|
* Implements React's {@link Component#render()}.
|
|
|
|
|
*
|
|
|
|
|
* @inheritdoc
|
|
|
|
|
* @returns {ReactElement}
|
|
|
|
|
*/
|
|
|
|
|
render() {
|
|
|
|
|
return (
|
2023-07-31 15:39:08 +02:00
|
|
|
<App { ...this.props } />
|
2016-10-05 09:36:59 -05:00
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2019-08-28 12:31:38 +02:00
|
|
|
// Initialize logging.
|
|
|
|
|
_initLogging();
|
|
|
|
|
|
2018-07-16 11:36:32 -05:00
|
|
|
// Register the main/root Component of JitsiMeetView.
|
2016-10-05 09:36:59 -05:00
|
|
|
AppRegistry.registerComponent('App', () => Root);
|