選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

OverlayFrame.native.js 780B

123456789101112131415161718192021222324252627282930313233343536
  1. // @flow
  2. import React, { Component } from 'react';
  3. import { View } from 'react-native';
  4. import { overlayFrame as styles } from './styles';
  5. /**
  6. * The type of the React {@code Component} props of {@code OverlayFrame}.
  7. */
  8. type Props = {
  9. /**
  10. * The children components to be displayed into the overlay frame.
  11. */
  12. children?: React$Node,
  13. };
  14. /**
  15. * Implements a React component to act as the frame for overlays.
  16. */
  17. export default class OverlayFrame extends Component<Props> {
  18. /**
  19. * Implements React's {@link Component#render()}.
  20. *
  21. * @inheritdoc
  22. * @returns {React$Element}
  23. */
  24. render() {
  25. return (
  26. <View style = { styles.container }>
  27. { this.props.children }
  28. </View>
  29. );
  30. }
  31. }