File tree Expand file tree Collapse file tree 4 files changed +7
-3
lines changed
Expand file tree Collapse file tree 4 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 22
33Stream 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
Original file line number Diff line number Diff line change @@ -2,12 +2,14 @@ import * as React from 'react';
22import { StyleSheet , View } from 'react-native' ;
33import { AirPlayButton } from 'react-native-airplay-cast' ;
44
5+ const systemRed = 'rgb(255, 59, 48)' ;
6+
57export 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} ) ;
You can’t perform that action at this time.
0 commit comments