We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d50f6b commit 6516315Copy full SHA for 6516315
1 file changed
apps/ExpoApp/components/counter/index.ios.tsx
@@ -1,22 +1,15 @@
1
import { StyleSheet, Text, Button } from 'react-native';
2
import { useStore } from '@callstack/brownie';
3
4
-type CounterProps = {
5
- colors: { primary: string; secondary: string };
6
-};
7
-
8
-const Counter = ({ colors }: CounterProps) => {
+const Counter = () => {
9
const [counter, setState] = useStore('BrownfieldStore', (s) => s.counter);
10
11
return (
12
<>
13
- <Text style={[styles.text, { color: colors.secondary }]}>
14
- Count: {counter}
15
- </Text>
+ <Text style={styles.text}>Count: {counter}</Text>
16
17
<Button
18
onPress={() => setState((prev) => ({ counter: prev.counter + 1 }))}
19
- color={colors.secondary}
20
title="Increment"
21
/>
22
</>
0 commit comments