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

TestHint.ios.js 723B

12345678910111213141516171819202122232425262728
  1. /* @flow */
  2. import React, { Component } from 'react';
  3. import { Text } from 'react-native';
  4. import type { TestHintProps } from './AbstractTestHint';
  5. /**
  6. * This is the iOS version of the TestHint.
  7. *
  8. * Be sure to check the description in TestHint.android and AbstractTestHint
  9. * files to understand what a test hint is and why different iOS and Android
  10. * components are necessary.
  11. */
  12. export default class TestHint extends Component<TestHintProps> {
  13. /**
  14. * Renders the test hint on Android.
  15. *
  16. * @returns {ReactElement}
  17. */
  18. render() {
  19. return (
  20. <Text
  21. accessibilityLabel = { this.props.value }
  22. testID = { this.props.id } />
  23. );
  24. }
  25. }