Skip to content

Commit

Permalink
πŸ“ (#2243)
Browse files Browse the repository at this point in the history
  • Loading branch information
wcandillon authored Feb 21, 2024
1 parent 974a2be commit a632ab9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions docs/docs/getting-started/web.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,8 @@ After setup, choose your method to [Load Skia](#loading-skia).

### Expo Router

For projects already using Expo Router, select between the [code-splitting](#using-code-splitting) approach or [deferred component registration](#using-deferred-component-registration).

To apply deferred component registration with Expo Router, create a new entry script and reference it in your `package.json`. For instance, if you've created `index.js` and `index.web.js` in the `src/` directory, update your `package.json` accordingly:
For projects using Expo Router, you can use [code-splitting](#using-code-splitting) or [deferred component registration](#using-deferred-component-registration).
If you wish to use deferred component registration with Expo Router, create a new entry script and reference it in your `package.json`. For instance, if you've created `index.js` and `index.web.js` in the `src/` directory, update your `package.json` accordingly:
```js
// package.json
{
Expand All @@ -64,7 +63,6 @@ LoadSkiaWeb().then(async () => {
});
```

Adapt this to [load the CanvasKit WASM from a CDN](#using-a-cdn) if preferred.
For the `src/index.js` file, directly invoke `renderRootComponent(App)`.

### Snack
Expand Down

0 comments on commit a632ab9

Please sign in to comment.