Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

index.native.js 1.3KB

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