snapshot of https://github.com/jitsi/jitsi-meet.git @ fd1749dd28f4138aa80234fc7f311b19aaffa0e7 (2026-09-15)
This commit is contained in:
34
react/features/base/testing/components/TestHint.ios.tsx
Normal file
34
react/features/base/testing/components/TestHint.ios.tsx
Normal file
@@ -0,0 +1,34 @@
|
||||
import React, { Component } from 'react';
|
||||
import { Text } from 'react-native';
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
import { TestHintProps, _mapStateToProps } from './AbstractTestHint';
|
||||
|
||||
/**
|
||||
* This is the iOS version of the TestHint.
|
||||
*
|
||||
* Be sure to check the description in TestHint.android and AbstractTestHint
|
||||
* files to understand what a test hint is and why different iOS and Android
|
||||
* components are necessary.
|
||||
*/
|
||||
class TestHint extends Component<TestHintProps> {
|
||||
/**
|
||||
* Renders the test hint on Android.
|
||||
*
|
||||
* @returns {ReactElement}
|
||||
*/
|
||||
override render() {
|
||||
if (!this.props._testModeEnabled) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<Text
|
||||
accessibilityLabel = { this.props.value }
|
||||
onPress = { this.props.onPress }
|
||||
testID = { this.props.id } />
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default connect(_mapStateToProps)(TestHint);
|
||||
Reference in New Issue
Block a user