Skip to content

Commit 626fb3e

Browse files
authored
[docs] Fix Snacks after dev domain migration (expo#13716)
* [docs] Fix Snacks after dev domain migration * update snack urls
1 parent bea111c commit 626fb3e

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

docs/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ import SnackInline from '~/components/plugins/SnackInline';
215215
// You can use:
216216
/* @hide Content that is still shown, like a preview. */
217217
Everything in here is hidden in the example Snack until
218-
you open it in snack.expo.io
218+
you open it in snack.expo.dev
219219
/* @end */
220220
// to shorten the length of the Snack shown in our docs. Common example are hiding useless code in examples, like StyleSheets
221221

docs/common/snack.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export const SNACK_URL = 'https://snack.expo.io';
1+
export const SNACK_URL = 'https://snack.expo.dev';
22
// export const SNACK_URL = 'http://snack.expo.test';
33

44
type Config = {

docs/components/plugins/SnackEmbed.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default class SnackEmbed extends React.Component<Props> {
2222
// inject script if it hasn't been loaded by a previous page
2323
if (!script) {
2424
script = document.createElement('script');
25-
script.src = `${this.props.snackId ? 'https://snack.expo.io' : SNACK_URL}/embed.js`;
25+
script.src = `${this.props.snackId ? 'https://snack.expo.dev' : SNACK_URL}/embed.js`;
2626
script.async = true;
2727
script.id = 'snack';
2828

docs/pages/guides/color-schemes.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,4 +137,4 @@ While you're developing, you may want to change your simulator's or device's app
137137

138138
- If working with an iOS emulator locally, you can use the `command` + `shift` + `a` shortcut to toggle between light and dark mode.
139139
- If using a real device or an Android emulator, you can toggle the system dark mode setting in the device's settings.
140-
- [Snack](https://snack.expo.io) is locked to light mode.
140+
- [Snack](https://snack.expo.dev) is locked to light mode.

docs/pages/versions/unversioned/sdk/stripe.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import SnackInline from '~/components/plugins/SnackInline';
99

1010
Expo includes support for [`@stripe/stripe-react-native`](https://github.com/stripe/stripe-react-native), which allows you to build delightful payment experiences in your native Android and iOS apps using React Native & Expo. This library provides powerful and customizable UI screens and elements that can be used out-of-the-box to collect your users' payment details.
1111

12-
If you're looking for a quick example, check out [this Snack](https://snack.expo.io/@charliecruzan/stripe-react-native-example?platform=mydevice)!
12+
If you're looking for a quick example, check out [this Snack](https://snack.expo.dev/@charliecruzan/stripe-react-native-example?platform=mydevice)!
1313

1414
> Migrating from Expo's `expo-payments-stripe` module? [Here's a guide to help make the transition as easy as possible](https://github.com/expo/fyi/blob/master/payments-migration-guide.md#how-to-migrate-from-expo-payments-stripe-to-the-new-stripestripe-react-native-library).
1515
@@ -47,7 +47,7 @@ Then rebuild the app. If you're using the bare workflow, make sure to run `expo
4747

4848
## Example
4949

50-
Trying out Stripe takes just a few seconds. First, connect to [this Snack](https://snack.expo.io/@charliecruzan/stripe-react-native-example?platform=mydevice) on your device.
50+
Trying out Stripe takes just a few seconds. First, connect to [this Snack](https://snack.expo.dev/@charliecruzan/stripe-react-native-example?platform=mydevice) on your device.
5151

5252
Under the hood, that example connects to [this Glitch server code](https://glitch.com/edit/#!/expo-stripe-server-example), so you'll need to open that page to spin up the server. Feel free to run your own Glitch server and copy that code!
5353

docs/pages/workflow/already-used-react-native.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ If you prefer to build your app on your own machine, you can [follow these steps
5454

5555
## Helpful Tools & Resources
5656

57-
- [snack.expo.io](https://snack.expo.io)
57+
- [snack.expo.dev](https://snack.expo.dev)
5858
- The best way to test and share examples and small projects directly from your browser. Point your phone at the QR code and you have a sandbox environment you can build in the browser and test directly on your device.
5959
- [docs.expo.io](/versions/latest/)
6060
- If there's something you don't understand or wish to learn more about, this is a great place to start.

docs/pages/workflow/glossary-of-terms.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ We use the word "slug" in [app.json](#appjson) to refer to the name to use for y
105105

106106
### Snack
107107

108-
[Snack](https://snack.expo.io/) is an in-browser development environment where you can build Expo [experiences](#experience) without installing any tools on your phone or computer.
108+
[Snack](https://snack.expo.dev/) is an in-browser development environment where you can build Expo [experiences](#experience) without installing any tools on your phone or computer.
109109

110110
### Standalone app
111111

docs/pages/workflow/snack.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Snack solves precisely that problem. It's an open-source platform for running Re
1111

1212
## Let's get started
1313

14-
Head over to [https://snack.expo.io](https://snack.expo.io) and start typing! On the right, you'll see the preview of the changes you make. By going to the "Android" or "iOS" tabs, you can preview it on a simulator directly in the browser. To open it on your device, go to the "My Device" tab and open it in the Expo Go app.
14+
Head over to [https://snack.expo.dev](https://snack.expo.dev) and start typing! On the right, you'll see the preview of the changes you make. By going to the "Android" or "iOS" tabs, you can preview it on a simulator directly in the browser. To open it on your device, go to the "My Device" tab and open it in the Expo Go app.
1515

1616
## Adding a library
1717

0 commit comments

Comments
 (0)