Skip to content

Commit 6516315

Browse files
committed
fix: remove color prop
1 parent 1d50f6b commit 6516315

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

apps/ExpoApp/components/counter/index.ios.tsx

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,15 @@
11
import { StyleSheet, Text, Button } from 'react-native';
22
import { useStore } from '@callstack/brownie';
33

4-
type CounterProps = {
5-
colors: { primary: string; secondary: string };
6-
};
7-
8-
const Counter = ({ colors }: CounterProps) => {
4+
const Counter = () => {
95
const [counter, setState] = useStore('BrownfieldStore', (s) => s.counter);
106

117
return (
128
<>
13-
<Text style={[styles.text, { color: colors.secondary }]}>
14-
Count: {counter}
15-
</Text>
9+
<Text style={styles.text}>Count: {counter}</Text>
1610

1711
<Button
1812
onPress={() => setState((prev) => ({ counter: prev.counter + 1 }))}
19-
color={colors.secondary}
2013
title="Increment"
2114
/>
2215
</>

0 commit comments

Comments
 (0)