Skip to content

Commit 7bf600f

Browse files
maratalclaude
andcommitted
feat: add Clear Log button to React Native push guide
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent bc1c233 commit 7bf600f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed
42.7 KB
Loading

src/pages/docs/push/getting-started/react-native.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,9 @@ return (
487487
<Text key={i} style={styles.logEntry}>{entry}</Text>
488488
))}
489489
</ScrollView>
490+
<TouchableOpacity style={[styles.btn, styles.btnGray]} onPress={() => setLog([])}>
491+
<Text style={styles.btnText}>Clear Log</Text>
492+
</TouchableOpacity>
490493
</View>
491494
</SafeAreaView>
492495
);
@@ -504,6 +507,7 @@ btnGreen: {backgroundColor: '#28a745'},
504507
btnRed: {backgroundColor: '#dc3545'},
505508
btnPurple: {backgroundColor: '#6f42c1'},
506509
btnOrange: {backgroundColor: '#fd7e14'},
510+
btnGray: {backgroundColor: '#6c757d', marginTop: 8},
507511

508512
```
509513
</Code>

0 commit comments

Comments
 (0)