Skip to content

Commit 7c3b790

Browse files
committed
feat: temporarily deintegrate brownie from expo demo before android is implemented in brownie
1 parent a4cd611 commit 7c3b790

2 files changed

Lines changed: 3 additions & 11 deletions

File tree

apps/ExpoApp/app/(tabs)/index.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import '../../BrownfieldStore.brownie';
33
import { Image } from 'expo-image';
44
import { Link } from 'expo-router';
55
import { Platform, StyleSheet, View } from 'react-native';
6-
import { useStore } from '@callstack/brownie';
76

87
import { HelloWave } from '@/components/hello-wave';
98
import ParallaxScrollView from '@/components/parallax-scroll-view';
@@ -12,7 +11,7 @@ import { ThemedView } from '@/components/themed-view';
1211
import { IconSymbol } from '@/components/ui/icon-symbol';
1312

1413
export default function HomeScreen() {
15-
const [counter, setState] = useStore('BrownfieldStore', (s) => s.counter);
14+
// TODO: const [counter, setState] = useStore('BrownfieldStore', (s) => s.counter);
1615

1716
return (
1817
<ParallaxScrollView
@@ -85,13 +84,13 @@ export default function HomeScreen() {
8584
alignContent: 'center',
8685
}}
8786
>
88-
Brownie state store counter: {counter}
87+
Brownie state store counter: {0}
8988
</ThemedText>
9089
<IconSymbol
9190
name="plus"
9291
size={24}
9392
color="black"
94-
onPress={() => setState((prev) => ({ counter: prev.counter + 1 }))}
93+
// onPress={() => setState((prev) => ({ counter: prev.counter + 1 }))}
9594
/>
9695
</View>
9796
</ThemedView>

apps/RNApp/src/HomeScreen.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,6 @@ export function HomeScreen({
6161
color={colors.secondary}
6262
title="Go back"
6363
/>
64-
65-
<View style={styles.extraContentsContainer}>{extraContents}</View>
6664
</View>
6765
);
6866
}
@@ -79,9 +77,4 @@ const styles = StyleSheet.create({
7977
fontWeight: 'bold',
8078
margin: 10,
8179
},
82-
extraContentsContainer: {
83-
marginTop: 20,
84-
flex: 1,
85-
width: '100%',
86-
},
8780
});

0 commit comments

Comments
 (0)