diff --git a/package-lock.json b/package-lock.json index f4111be..faf15a0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9061,6 +9061,11 @@ } } }, + "react-native-airplay-button": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/react-native-airplay-button/-/react-native-airplay-button-1.0.4.tgz", + "integrity": "sha512-iMRgiYdHga/XhAEaedyYleR2oM7oE0f3LuKWLFM34ggHYMWYDKR/f5ttJ1qDMiuks592xJOUfzfzYzwRK8ZTyQ==" + }, "react-native-codegen": { "version": "0.0.6", "resolved": "https://registry.npmjs.org/react-native-codegen/-/react-native-codegen-0.0.6.tgz", diff --git a/package.json b/package.json index cca870d..e1ffce5 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,7 @@ "lodash": "^4.17.21", "react": "17.0.1", "react-native": "0.64.0", + "react-native-airplay-button": "^1.0.4", "react-native-collapsible": "^1.5.3", "react-native-dotenv": "^2.5.1", "react-native-fast-image": "^8.3.4", diff --git a/src/screens/Player/components/Casting.android.tsx b/src/screens/Player/components/Casting.android.tsx new file mode 100644 index 0000000..b923881 --- /dev/null +++ b/src/screens/Player/components/Casting.android.tsx @@ -0,0 +1,14 @@ +import React from 'react'; +import styled from 'styled-components/native'; + +const Button = styled.View` + margin: 20px 40px; +`; + +function Casting() { + return ( + + + ); +} + +export default Casting; diff --git a/src/screens/Player/components/MediaControls.tsx b/src/screens/Player/components/MediaControls.tsx index 5d52e71..8e2e230 100644 --- a/src/screens/Player/components/MediaControls.tsx +++ b/src/screens/Player/components/MediaControls.tsx @@ -10,6 +10,7 @@ import PauseIcon from 'assets/pause.svg'; import RepeatIcon from 'assets/repeat.svg'; // import ShuffleIcon from 'assets/shuffle.svg'; import { THEME_COLOR } from 'CONSTANTS'; +import Casting from './Casting'; const BUTTON_SIZE = 40; const BUTTON_SIZE_SMALL = 25; @@ -54,9 +55,7 @@ export default function MediaControls() { - + );