您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

index.native.js 911B

1234567891011121314151617181920212223242526272829303132333435
  1. // NB: This import must always come first.
  2. import './bootstrap.native';
  3. import React, { PureComponent } from 'react';
  4. import { AppRegistry } from 'react-native';
  5. import { App } from './features/app/components/App.native';
  6. import { _initLogging } from './features/base/logging/functions';
  7. /**
  8. * React Native doesn't support specifying props to the main/root component (in
  9. * the JS/JSX source code). So create a wrapper React Component (class) around
  10. * features/app's App instead.
  11. *
  12. * @augments Component
  13. */
  14. class Root extends PureComponent {
  15. /**
  16. * Implements React's {@link Component#render()}.
  17. *
  18. * @inheritdoc
  19. * @returns {ReactElement}
  20. */
  21. render() {
  22. return (
  23. <App { ...this.props } />
  24. );
  25. }
  26. }
  27. // Initialize logging.
  28. _initLogging();
  29. // Register the main/root Component of JitsiMeetView.
  30. AppRegistry.registerComponent('App', () => Root);