mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
45 lines
1.3 KiB
JavaScript
45 lines
1.3 KiB
JavaScript
// https://github.com/software-mansion/react-native-gesture-handler/issues/320#issuecomment-443815828
|
|
import 'react-native-gesture-handler';
|
|
|
|
// Apply all necessary polyfills as early as possible to make sure anything imported henceforth
|
|
// sees them.
|
|
import 'react-native-get-random-values';
|
|
import './features/mobile/polyfills';
|
|
|
|
import React, { PureComponent } from 'react';
|
|
import { AppRegistry } from 'react-native';
|
|
|
|
import { App } from './features/app/components/App.native';
|
|
import { _initLogging } from './features/base/logging/functions';
|
|
import JitsiThemePaperProvider from './features/base/ui/components/JitsiThemeProvider';
|
|
|
|
/**
|
|
* 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.
|
|
*
|
|
* @augments Component
|
|
*/
|
|
class Root extends PureComponent {
|
|
/**
|
|
* Implements React's {@link Component#render()}.
|
|
*
|
|
* @inheritdoc
|
|
* @returns {ReactElement}
|
|
*/
|
|
render() {
|
|
return (
|
|
<JitsiThemePaperProvider>
|
|
<App
|
|
{ ...this.props } />
|
|
</JitsiThemePaperProvider>
|
|
);
|
|
}
|
|
}
|
|
|
|
// Initialize logging.
|
|
_initLogging();
|
|
|
|
// Register the main/root Component of JitsiMeetView.
|
|
AppRegistry.registerComponent('App', () => Root);
|