MCPcopy Create free account
hub / github.com/tensorflow/tfjs / renderMainScreen

Method renderMainScreen

tfjs-react-native/integration_rn59/App.tsx:87–127  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

85 }
86
87 renderMainScreen() {
88 return <Fragment>
89 <View style={styles.sectionContainer}>
90 <Text style={styles.sectionTitle}>Diagnostic</Text>
91 <Button
92 onPress={this.showDiagnosticScreen}
93 title='Show Diagnostic Screen'
94 />
95 </View>
96 <View style={styles.sectionContainer}>
97 <Text style={styles.sectionTitle}>Demo</Text>
98 <Button
99 onPress={this.showDemoScreen}
100 title='Show Demo Screen'
101 />
102 </View>
103 <View style={styles.sectionContainer}>
104 <Text style={styles.sectionTitle}>Unit tests</Text>
105 <Button
106 testID='unit-test-btn'
107 accessibilityLabel='unit-test-btn'
108 onPress={this.showTestScreen}
109 title='Show Test Screen'
110 />
111 </View>
112 <View style={styles.sectionContainer}>
113 <Text style={styles.sectionTitle}>Webcam Demo</Text>
114 <Button
115 onPress={this.showWebcamDemo}
116 title='Show Webcam Demo'
117 />
118 </View>
119 <View style={styles.sectionContainer}>
120 <Text style={styles.sectionTitle}>Realtime Webcam Demo</Text>
121 <Button
122 onPress={this.showRealtimeDemo}
123 title='Show Realtime Webcam Demo'
124 />
125 </View>
126 </Fragment>;
127 }
128
129 renderDiagnosticScreen() {
130 return <Fragment>

Callers 1

renderContentMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected