back header types, transform-ignore-pattern & tidy up docs for imagefallback

This commit is contained in:
Loewy
2024-02-21 18:02:54 -08:00
parent 608e784205
commit 7da14dbb6c
12 changed files with 32 additions and 322 deletions

View File

@@ -1,5 +1,5 @@
import React from "react";
import { StyleSheet, Text, View } from "react-native";
import { StyleProp, StyleSheet, Text, View, ViewStyle } from "react-native";
import { borders } from "../../styles";
type StatItem = {
@@ -9,14 +9,14 @@ type StatItem = {
type StatListProps = {
items: StatItem[];
style?: object;
style?: StyleProp<ViewStyle>;
};
const StatList: React.FC<StatListProps> = ({ items, style }) => {
return (
<View style={[styles.container, style]}>
{items.map((item, index) => (
<View key={index} style={styles.item}>
<View key={`${item.title}-${index}`} style={styles.item}>
<Text style={styles.title}>{item.title}</Text>
<Text style={styles.value}>{item.value}</Text>
</View>
@@ -27,7 +27,6 @@ const StatList: React.FC<StatListProps> = ({ items, style }) => {
const styles = StyleSheet.create({
container: {
flexDirection: "column",
flex: 1,
padding: 5,
},