-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with ejected Expo Project #105
Comments
@jeremybdk Sorry for not replying earlier, I'm pretty busy atm, also in the middle of moving. Seems like that could work. Would you like to submit a PR? The check whether the app is an Expo app or plain RN is here: Lines 69 to 78 in 89fa937
It should be pretty easy to test. Maybe some other tweaks will be required to update both the Expo config and the RN app, when ejected - if that's what we want. |
@stovmascript I did a bit search and I found out there's not a full-proof way to understand if a RN expo project is ejected (or bare flow) or not. What I think of creating as PR is to have an additional option in CLI to force updating of native files even if expo has been detected. And leave it up to the user to fix his situation. Or something like |
@killerchip What about removing the |
@stovmascript I'm using expo but not an expo expert myself. My tests showed:
Anyway, the solution I'm proposing is not obtrusive. It's an opt-in and removes the concern of managing edge cases with expo from your package, and gives this flexibility to user. But it's your call in the end :-) |
@stovmascript if the Pullrequest could be accepted it would be awesome! |
@stovmascript Even if expo is ejected, there are modules that use ex.) expo-updates - npm |
Another option would be to include instructions on how to update the Android and iOS build steps to READ the version information from the "app.json" file. Here's an easy way to do it in Android:
for iOS I found this suggested solution |
I'm actually more inclined to do it the other way around and introduce some |
I would absolutely love an
|
@cjthompson I have tried below for iOS but its not working for me, version and buildNumber doesn't change.
and changed my
can you share how you configured it for iOS? |
Please apply one of these two PR's which would fix the issue: |
As a workaround, you may convert your |
I just tried this workaround and got it to work. Minor correction for future searchers. You'll want to convert your |
Hello,
I am trying to use react-native-version with and ejected expo project. The version in the app.json get incremented but not the one in the Android and in the iOS Project.
It seems that the Expo detection will not check if the project is ejected or not, only if the app.json contains an Expo key.
I believe that checking for the Expo key and for the isDetached could be a way to support Expo detached app and increment the version in the native folders.
Thanks
The text was updated successfully, but these errors were encountered: