Replies: 6 comments 13 replies
-
Update react-native-svg-transformer 1.2.0 to 1.3.0 |
Beta Was this translation helpful? Give feedback.
-
Hi @Evanion have you succeeded on creating a development build for iOS ? |
Beta Was this translation helpful? Give feedback.
-
Sounds like issues we had in our team. Let me point you in the right direction:
This should do the trick :) I guess step 2 is the tricky part since it is not coresponsding with the docs which tell you to use A basic version of the import { Text } from 'react-native';
export default function Page() {
return <Text>Home page</Text>;
} you could add a import { Slot } from 'expo-router';
import { SafeAreaView } from 'react-native';
export default function Root() {
return (
<SafeAreaView>
<Slot />
</SafeAreaView>
);
} |
Beta Was this translation helpful? Give feedback.
-
We could use an official guide, by |
Beta Was this translation helpful? Give feedback.
-
I think this is similar issue. When I run android app using App is build and than it crash.
However, In browser there is no issue like this. It run well. |
Beta Was this translation helpful? Give feedback.
-
i managed to get it working, |
Beta Was this translation helpful? Give feedback.
-
I have been trying to get expo-router to work in a nx project.
So far I have gotten to the part where I'm getting an error relating to the context.
example repo: https://github.com/Evanion/nx-expo-router
This repo contains 2 apps:
Current state
Right now, I'm getting an error that says
What I have tried
No
src
directoryI moved the app code out of the src folder, as the expo docs discurrages changing the folder structure, and when you generate a new project using
npx create-expo-app
it generates a codebase that doesn't usesrc
folder. I would prefer to have one in the end though.Update index.js
I have updated the root index.js as per the expo docs, thinking that being a monorepo the
expo-router
might get the wrong path.Declaring entry point
I have tried two approaches to declaring the entry point, both in the
apps/mobile/package.json#main
as per expo docs, and then by adding animport 'expo-router/entry';
to the top of the rootindex.js
file. This only changes the error message to point at theTutorial.js
file in theexpo-router
package. But it still complain that thefromDir
is undefined rather than a string.Adding
EXPO_USE_METRO_WORKSPACE_ROOT
Since when working with expo in a
yarn
workspace, you need to set an env variable to tell expo this, I added a.env
to themobile
app, and added the variable, as well as updated the target inproject.json
to include it to the executor as an input. Though I suspect the that the@nx/expo
package already does this.Conclusion
I suspect that there are more people that would like to use
expo-router
with nx. But I have been unable to find any real discussions on the topic. So figured I would post something here, and hope that more people would be interested in helping out getting it fixed.Beta Was this translation helpful? Give feedback.
All reactions