Skip to content

Commit

Permalink
update expo
Browse files Browse the repository at this point in the history
  • Loading branch information
teticio committed Oct 7, 2022
1 parent 6890c56 commit a3b5cd0
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"electron-is-dev": "^2.0.0",
"electron-squirrel-startup": "^1.0.0",
"expo": "~46.0.0",
"expo-dev-client": "~1.3.0",
"expo-linking": "~3.2.2",
"history": "^5.0.1",
"localStorage": "^1.0.4",
Expand Down Expand Up @@ -66,7 +67,6 @@
"test": "react-scripts test",
"eject": "react-scripts eject",
"bundle:ios": "react-native bundle --entry-file src/index.native.js --platform ios --dev false --bundle-output ios/main.jsbundle --assets-dest ios",
"postinstall": "yarn run bundle:ios",
"start-native": "expo start --dev-client",
"android": "expo run:android",
"ios": "expo run:ios",
Expand Down
7 changes: 6 additions & 1 deletion src/components/Playlist.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
import React from 'react';
import React, { useState } from 'react';
import 'react-native-get-random-values';
import { v4 as uuidv4 } from 'uuid';
import { IFrame } from './Platform';

export default function Playlist({ track_ids = [], waypoints = [], playlist_id = '' }) {
const height = 80 + 50 * track_ids.length;
const [visibility, setVisibility] = useState('hidden');

return (
<IFrame
title={uuidv4()}
width='100%'
height={height}
style={{
visibility: visibility
}}
onLoad={() => setVisibility('visible')}
src={`${process.env.REACT_APP_API_URL}/playlist_widget` +
`?track_ids=${encodeURIComponent(JSON.stringify(track_ids))}` +
`&waypoints=${encodeURIComponent(JSON.stringify(waypoints))}` +
Expand Down
8 changes: 7 additions & 1 deletion src/components/Track.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
import React from 'react';
import React, { useState } from 'react';
import { IFrame } from './Platform';

export default function Track({ track_id }) {
const [visibility, setVisibility] = useState('hidden');

return (
<IFrame
title={track_id}
width='100%'
height={80}
style={{
visibility: visibility
}}
onLoad={() => setVisibility('visible')}
src={`${process.env.REACT_APP_API_URL}/track_widget` +
`?track_id=${encodeURIComponent(track_id)}`
}
Expand Down
53 changes: 53 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6842,6 +6842,42 @@ expo-constants@~13.2.0, expo-constants@~13.2.2, expo-constants@~13.2.4:
"@expo/config" "~7.0.0"
uuid "^3.3.2"

expo-dev-client@~1.3.0:
version "1.3.0"
resolved "https://registry.yarnpkg.com/expo-dev-client/-/expo-dev-client-1.3.0.tgz#7f57b1e6a8b4b0a67e4786404f0e47043243a1e8"
integrity sha512-op1onFQy4EPXn9FlSLJ+hFKZVtuoIUUmBiKuruj7wa37ZZPkxdHEMFllSvnJAuCMQi3EqrRfvG69vDqZpcXseg==
dependencies:
"@expo/config-plugins" "~5.0.0"
expo-dev-launcher "1.3.0"
expo-dev-menu "1.3.0"
expo-dev-menu-interface "0.7.2"
expo-manifests "~0.3.0"
expo-updates-interface "~0.7.0"

[email protected]:
version "1.3.0"
resolved "https://registry.yarnpkg.com/expo-dev-launcher/-/expo-dev-launcher-1.3.0.tgz#91252c8cb58909d224ea926061d43e7e0c95c5d0"
integrity sha512-r0fSXh+TBeTgH2asu45qaURE27Qnkrn6U8ojYMMSw+Sb9d5VKsYDeBrhoRHuGa9zWFfRM9E1FOCVUeYEwOc7lw==
dependencies:
"@expo/config-plugins" "~5.0.0"
expo-dev-menu "1.3.0"
resolve-from "^5.0.0"
semver "^7.3.5"

[email protected]:
version "0.7.2"
resolved "https://registry.yarnpkg.com/expo-dev-menu-interface/-/expo-dev-menu-interface-0.7.2.tgz#2198d014bcbe11335225cc3f100226195b441bc4"
integrity sha512-Ym0IFsgBj9bdInjRcxv6xfczdTCKfPKUAsLZ1sD5twpOs7oBViMnTC0+KTGkkYHG4EapWbu9yApPmbV3N10Zcg==

[email protected]:
version "1.3.0"
resolved "https://registry.yarnpkg.com/expo-dev-menu/-/expo-dev-menu-1.3.0.tgz#213aaa056e329820c74bd0cfc1fc1f696f078246"
integrity sha512-mICoKfcp2UVeUPfHTlUDZTYXx8babAcSP+q/XTNMBkEeCM1oGLTGmMNyWqdB/Cz3h+HdNDGv81Lomj/ig4wQxQ==
dependencies:
"@expo/config-plugins" "~5.0.0"
expo-dev-menu-interface "0.7.2"
semver "^7.3.5"

expo-error-recovery@~3.2.0:
version "3.2.0"
resolved "https://registry.yarnpkg.com/expo-error-recovery/-/expo-error-recovery-3.2.0.tgz#3a4543382904a5e70829cb41d7fc0f022c2bef6e"
Expand All @@ -6862,6 +6898,11 @@ expo-font@~10.2.1:
dependencies:
fontfaceobserver "^2.1.0"

expo-json-utils@~0.3.0:
version "0.3.0"
resolved "https://registry.yarnpkg.com/expo-json-utils/-/expo-json-utils-0.3.0.tgz#0c4a0195ee2bbde02cbb5f4d384d1cb63bea7493"
integrity sha512-ceo0pWFJqRAsNjZWX3rVDhy+NDzmrBNFOdvW+HE4EHqlt+OEUu9INIYKO8fU+g3ifI0VcKqHfvvj5wKsSpvPBw==

expo-keep-awake@~10.2.0:
version "10.2.0"
resolved "https://registry.yarnpkg.com/expo-keep-awake/-/expo-keep-awake-10.2.0.tgz#46f04740bccd321732bbbed93491e2076d5dbbd7"
Expand All @@ -6878,6 +6919,13 @@ expo-linking@~3.2.2:
qs "^6.9.1"
url-parse "^1.5.9"

expo-manifests@~0.3.0:
version "0.3.1"
resolved "https://registry.yarnpkg.com/expo-manifests/-/expo-manifests-0.3.1.tgz#52c3ef41d3b1958039be0434363e6499c773aaf6"
integrity sha512-zv2a4pzhbvxVjrTO4XEiP5THt4RwtxyJjfixFhDNfHtDQR7fS4h9sZSGX9ind+IS5SQJQ2ykfVAi8xnwP6zHaw==
dependencies:
expo-json-utils "~0.3.0"

[email protected]:
version "0.10.3"
resolved "https://registry.yarnpkg.com/expo-modules-autolinking/-/expo-modules-autolinking-0.10.3.tgz#31bfcf3e4b613a7c3949fb1f1e9c23eea4c14caf"
Expand All @@ -6897,6 +6945,11 @@ [email protected]:
compare-versions "^3.4.0"
invariant "^2.2.4"

expo-updates-interface@~0.7.0:
version "0.7.0"
resolved "https://registry.yarnpkg.com/expo-updates-interface/-/expo-updates-interface-0.7.0.tgz#f4f03b61dbdd949cac9fb44e250e1162ba177650"
integrity sha512-saThnbrYDSjKxfMFFguAvh5o5KGabvAOHItkJRwq2L3c0T/3q26Q0kM83880h/+TTtAVsl1+Vhny9d+ImD3yvQ==

expo@~46.0.0:
version "46.0.15"
resolved "https://registry.yarnpkg.com/expo/-/expo-46.0.15.tgz#c10d27c0ee85669132310949f2e56e95b4a14469"
Expand Down

0 comments on commit a3b5cd0

Please sign in to comment.