An ATproto social media client -- with an independent Appview.

Fix font loading on web (#5412)

* Copy font files during build

* Fall back if error loading fonts

authored by

Eric Bailey and committed by
GitHub
bda355fd cbc7cd08

+3 -3
+1 -1
package.json
··· 15 15 "web": "expo start --web", 16 16 "use-build-number": "./scripts/useBuildNumberEnv.sh", 17 17 "use-build-number-with-bump": "./scripts/useBuildNumberEnvWithBump.sh", 18 - "build-web": "expo export:web && node ./scripts/post-web-build.js && cp -v ./web-build/static/js/*.* ./bskyweb/static/js/ && cp -v ./web-build/static/media/*.png ./bskyweb/static/media/", 18 + "build-web": "expo export:web && node ./scripts/post-web-build.js && cp -v ./web-build/static/js/*.* ./bskyweb/static/js/ && cp -v ./web-build/static/media/* ./bskyweb/static/media/", 19 19 "build-all": "yarn intl:build && yarn use-build-number-with-bump eas build --platform all", 20 20 "build-ios": "yarn use-build-number-with-bump eas build -p ios", 21 21 "build-android": "yarn use-build-number-with-bump eas build -p android",
+2 -2
src/App.web.tsx
··· 144 144 145 145 function App() { 146 146 const [isReady, setReady] = useState(false) 147 - const [loaded] = useFonts() 147 + const [loaded, error] = useFonts() 148 148 149 149 React.useEffect(() => { 150 150 initPersistedState().then(() => setReady(true)) 151 151 }, []) 152 152 153 - if (!isReady || !loaded) { 153 + if (!isReady || (!loaded && !error)) { 154 154 return null 155 155 } 156 156