Open putu-eka-mulyana opened 1 year ago
Make sure you are not using Expo Go.
You will need to create a development build with eas build --profile development
and then use that instead of Expo Go.
error when yarn start
I can't help if you don't give me the details
Thank you for answering,
i run eas build --profile development --platform android
OK. It seems you have added something like this to app.json
:
"plugins": ["react-native-share"]
But react-native-share
does not require a config plugin. So you should remove that from app.json
.
Also, you might want to upgrade eas-cli
and add the version to eas.json
like this:
{
"cli": {
"version": ">= 2.9.0"
},
"build": {
"development": {
...
Oh, and remove eas-cli
from your project dependencies. It should just be installed globally.
Can't it run on the local computer?
i run npx expo start --tunnel
What did you run on the phone/emulator/simulator to get this error?
oh my phone
No, I mean which app did you run on your phone, exactly?
I run the application from your repository
OK, there's something weird going on.
I got the same error now when I tried npx expo start --tunnel
, but npx expo start
works fine. I'm not sure yet what's going wrong with --tunnel
.
Can you try without --tunnel
?
I decided to upgrade to Expo SDK 47 before giving it a try. You can download my development build from here if you like (available for the next 29 days): https://expo.dev/accounts/wodin/projects/RNShare/builds/54a920d4-2948-4575-be9d-4a6ead4b0e91
I build it with eas build -p android --profile development
You'd need to make sure your git clone of this repository is up to date (currently commit ID b7dc6bfa3da754be0a53058f1db65a314d9f2a50)
thanks for helping me in using react native share in expo. but the problem now is when I click the "share to IG story" button it doesn't open instagram.
Hi. It seems that for some apps you need to list them in Info.plist
.
Try adding this to app.json
:
{
"expo": {
// [...]
"ios": {
// [...]
"infoPlist": {
"LSApplicationQueriesSchemes": [
"instagram-stories",
"instagram"
]
}
},
// [...]
}
}
Hi,
do you know how to fix this error ?