-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(snack-runtime): upgrade custom runtime to Expo SDK 50 (#576)
* refactor(snack-runtime): upgrade to Expo SDK `50.0.17` * refactor(runtime-shell): upgrade to Expo SDK `50.0.17` * refactor(runtime-shell): drop `useClassicUpdates: true` from `app.json` * refactor(runtime-shell): drop `app.config.js` in favor of `.env` files * refactor(snack-runtime): use new URL handling from `snack-content` * refactor(snack-runtime): sync aliases and babel config from `runtime` * refactor(runtime-shell): update to latest `snack-runtime` * chore(snack-runtime): bump version for release * docs: fix typo in comment * refactor(snack-runtime): drop legacy test
- Loading branch information
Showing
20 changed files
with
2,557 additions
and
2,361 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/** | ||
* Return the `testTransport` query parameter from a Snack URL, if provided. | ||
*/ | ||
export function parseTestTransportFromUrl(snackUrl: string) { | ||
const url = new URL(snackUrl.replace(/^[a-z]+:/i, 'http://')); | ||
return url.searchParams.get('testTransport'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,8 @@ const aliases: { [key: string]: any } = { | |
'react-native/Libraries/Core/Devtools/getDevServer': require('react-native/Libraries/Core/Devtools/getDevServer'), // Used by @sentry/[email protected] | ||
'react-native/Libraries/Utilities/PolyfillFunctions': require('react-native/Libraries/Utilities/PolyfillFunctions'), // Used by @sentry/[email protected] | ||
'react-native/Libraries/Utilities/codegenNativeCommands': require('react-native/Libraries/Utilities/codegenNativeCommands'), // Used by [email protected] | ||
'react-native/Libraries/NativeComponent/NativeComponentRegistry': require('react-native/Libraries/NativeComponent/NativeComponentRegistry'), // Used by @shopify/[email protected] | ||
'react-native/Libraries/Utilities/codegenNativeComponent': require('react-native/Libraries/Utilities/codegenNativeComponent'), // Used by react-native-svg | ||
}; | ||
|
||
export default aliases; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ export const modules: SnackConfig['modules'] = { | |
|
||
// Snack Runtime vendored modules | ||
'react-native-view-shot': require('react-native-view-shot'), | ||
'react-native-screens': require('react-native-screens'), | ||
|
||
// React Native core modules | ||
'react-native': require('react-native'), | ||
|
@@ -26,4 +27,6 @@ export const modules: SnackConfig['modules'] = { | |
'react-native/Libraries/Core/Devtools/getDevServer': require('react-native/Libraries/Core/Devtools/getDevServer'), // Used by @sentry/[email protected] | ||
'react-native/Libraries/Utilities/PolyfillFunctions': require('react-native/Libraries/Utilities/PolyfillFunctions'), // Used by @sentry/[email protected] | ||
'react-native/Libraries/Utilities/codegenNativeCommands': require('react-native/Libraries/Utilities/codegenNativeCommands'), // Used by [email protected] | ||
'react-native/Libraries/NativeComponent/NativeComponentRegistry': require('react-native/Libraries/NativeComponent/NativeComponentRegistry'), // Used by @shopify/[email protected] | ||
'react-native/Libraries/Utilities/codegenNativeComponent': require('react-native/Libraries/Utilities/codegenNativeComponent'), // Used by react-native-svg | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.