Skip to content

Commit 5172f1e

Browse files
committed
chore: updated example
1 parent 6080a38 commit 5172f1e

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
Stream audio or video to AirPlay-enabled devices with a customizable AirPlay button.
44

5+
![AirPlay Button](example-1.png) ![AirPlay Button Pressed](example-2.png)
6+
57
## Installation
68

79
```sh

example-1.png

47.6 KB
Loading

example-2.png

641 KB
Loading

example/src/App.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@ import * as React from 'react';
22
import { StyleSheet, View } from 'react-native';
33
import { AirPlayButton } from 'react-native-airplay-cast';
44

5+
const systemRed = 'rgb(255, 59, 48)';
6+
57
export default function App() {
68
return (
79
<View style={styles.container}>
810
<AirPlayButton
911
activeTintColor="blue"
10-
tintColor="black"
12+
tintColor={systemRed}
1113
style={styles.button}
1214
/>
1315
</View>
@@ -21,7 +23,7 @@ const styles = StyleSheet.create({
2123
justifyContent: 'center',
2224
},
2325
button: {
24-
width: 30,
25-
height: 30,
26+
width: 100,
27+
height: 100,
2628
},
2729
});

0 commit comments

Comments
 (0)