Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

index.native.js 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. // @flow
  2. // https://github.com/software-mansion/react-native-gesture-handler/issues/320#issuecomment-443815828
  3. import 'react-native-gesture-handler';
  4. // Apply all necessary polyfills as early as possible to make sure anything imported henceforth
  5. // sees them.
  6. import 'react-native-get-random-values';
  7. import './features/mobile/polyfills';
  8. import React, { PureComponent } from 'react';
  9. import { AppRegistry } from 'react-native';
  10. import { App } from './features/app/components';
  11. import { _initLogging } from './features/base/logging/functions';
  12. import JitsiThemePaperProvider from './features/base/ui/components/JitsiThemeProvider';
  13. /**
  14. * The type of the React {@code Component} props of {@link Root}.
  15. */
  16. type Props = {
  17. /**
  18. * The URL, if any, with which the app was launched.
  19. */
  20. url: Object | string
  21. };
  22. /**
  23. * React Native doesn't support specifying props to the main/root component (in
  24. * the JS/JSX source code). So create a wrapper React Component (class) around
  25. * features/app's App instead.
  26. *
  27. * @augments Component
  28. */
  29. class Root extends PureComponent<Props> {
  30. /**
  31. * Implements React's {@link Component#render()}.
  32. *
  33. * @inheritdoc
  34. * @returns {ReactElement}
  35. */
  36. render() {
  37. return (
  38. <JitsiThemePaperProvider>
  39. <App
  40. { ...this.props } />
  41. </JitsiThemePaperProvider>
  42. );
  43. }
  44. }
  45. // Initialize logging.
  46. _initLogging();
  47. // Register the main/root Component of JitsiMeetView.
  48. AppRegistry.registerComponent('App', () => Root);