Skip to content

Commit 20dfaa1

Browse files
committed
update example
1 parent 7df98c9 commit 20dfaa1

1 file changed

Lines changed: 10 additions & 12 deletions

File tree

example/App.tsx

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,22 @@ type ExampleDescriptor = {
2323
const EXAMPLES: ExampleDescriptor[] = [
2424
{
2525
key: 'source-loading',
26-
title: 'Source Loading (issue #50)',
26+
title: 'Source Loading',
2727
description:
2828
'Verifies local require() and remote URL sources render, incl. Android release builds.',
2929
Component: SourceLoadingExample,
3030
},
3131
{
3232
key: 'layout-fit',
33-
title: 'Layout / fit (issue #64)',
33+
title: 'Layout / fit',
3434
description:
3535
'Switch fit modes (contain, cover, fill, …) in a wide container to see filling vs cropping.',
3636
Component: LayoutFitExample,
3737
},
3838
{
3939
key: 'multiple-animations',
4040
title: 'Multiple Animations Test',
41-
description:
42-
'Rendering multiple DotLottie components simultaneously.',
41+
description: 'Rendering multiple DotLottie components simultaneously.',
4342
Component: MultipleAnimationsTest,
4443
},
4544
{
@@ -62,8 +61,8 @@ export default function App() {
6261
const [activeKey, setActiveKey] = useState<string | null>(null);
6362

6463
const activeExample = useMemo(
65-
() => EXAMPLES.find((example) => example.key === activeKey) ?? null,
66-
[activeKey]
64+
() => EXAMPLES.find(example => example.key === activeKey) ?? null,
65+
[activeKey],
6766
);
6867

6968
return (
@@ -91,16 +90,15 @@ export default function App() {
9190
Pick an example to explore different integration paths and check
9291
native lifecycle behavior.
9392
</Text>
94-
{EXAMPLES.map((example) => (
93+
{EXAMPLES.map(example => (
9594
<View key={example.key} style={styles.card}>
9695
<View style={styles.cardHeader}>
9796
<Text style={styles.cardTitle}>{example.title}</Text>
98-
<Text style={styles.cardDescription}>{example.description}</Text>
97+
<Text style={styles.cardDescription}>
98+
{example.description}
99+
</Text>
99100
</View>
100-
<Button
101-
title="Open"
102-
onPress={() => setActiveKey(example.key)}
103-
/>
101+
<Button title="Open" onPress={() => setActiveKey(example.key)} />
104102
</View>
105103
))}
106104
</ScrollView>

0 commit comments

Comments
 (0)