Skip to content

Commit 8818a91

Browse files
committed
Screen Capture protection
1 parent 0a2abfd commit 8818a91

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

example/src/DemoApp.tsx

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export const DemoApp: React.FC<{
5959
backgroundColor: Colors.background,
6060
justifyContent: 'center',
6161
}}>
62-
<ScrollView contentContainerStyle={styles.scrollViewContent}>
62+
<ScrollView>
6363
<VStack>
6464
<Image source={TalsecLogo} style={{ alignSelf: 'center' }} />;
6565
{Platform.OS === 'android' && (
@@ -161,11 +161,6 @@ export const DemoApp: React.FC<{
161161
};
162162

163163
const styles = StyleSheet.create({
164-
scrollViewContent: {
165-
flexGrow: 1,
166-
paddingVertical: 20,
167-
alignItems: 'center', // Centers content inside ScrollView
168-
},
169164
button: {
170165
justifyContent: 'center',
171166
alignItems: 'center',
@@ -177,13 +172,9 @@ const styles = StyleSheet.create({
177172
marginTop: 20,
178173
},
179174
blockedButton: {
180-
backgroundColor: Colors.checkOkLight, // When blocked
175+
backgroundColor: Colors.checkOkLight,
181176
},
182177
unblockedButton: {
183-
backgroundColor: Colors.checkNokLight, // When not blocked
184-
},
185-
vStack: {
186-
width: '90%', // Ensures items stay within proper width
187-
alignItems: 'center',
178+
backgroundColor: Colors.checkNokLight,
188179
},
189180
});

0 commit comments

Comments
 (0)