Skip to content

Commit 8bd8333

Browse files
author
Rishabh Karnad
committed
Updated installation guide for Expo users
Closes #189
1 parent c6e540a commit 8bd8333

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

converting-react-native-project.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,29 @@ module.exports = (async () => {
4545
})();
4646
```
4747

48+
#### NOTE to Expo users:
49+
50+
The `app.json` file must be modified to allow `.vue` files to be recognised.
51+
52+
```diff
53+
{
54+
"expo": {
55+
"sdkVersion": "34.0.0",
56+
"platforms": [
57+
"ios",
58+
"android",
59+
"web"
60+
],
61+
...
62+
"packagerOpts": {
63+
+ "sourceExts": ["js", "json", "ts", "tsx", "vue"],
64+
"config": "metro.config.js"
65+
}
66+
}
67+
}
68+
```
69+
70+
4871
The `babelTransformPath` property above takes the path to the transformer you wish to use. In our case, we need to create a `vueTransformerPlugin.js` file to the project's root and specify supported extensions:
4972

5073
```js

0 commit comments

Comments
 (0)