()
| 52 | const Stack = createStackNavigator(); |
| 53 | |
| 54 | function Examples() { |
| 55 | const navigation = useNavigation(); |
| 56 | return ( |
| 57 | <ScrollView> |
| 58 | {examples |
| 59 | .filter((example) => |
| 60 | 'platform' in example ? example?.platform === Platform.OS : example |
| 61 | ) |
| 62 | .map((example) => ( |
| 63 | <TouchableOpacity |
| 64 | key={example.title} |
| 65 | testID={example.title} |
| 66 | style={styles.exampleTouchable} |
| 67 | onPress={() => { |
| 68 | //@ts-ignore |
| 69 | navigation.navigate(example.title); |
| 70 | }} |
| 71 | > |
| 72 | <Text style={styles.exampleText}>{example.title}</Text> |
| 73 | </TouchableOpacity> |
| 74 | ))} |
| 75 | </ScrollView> |
| 76 | ); |
| 77 | } |
| 78 | |
| 79 | const examplesForPlatform = examples |
| 80 | .filter((example) => |
nothing calls this directly
no outgoing calls
no test coverage detected