Closed melnikovkolya closed 6 months ago
👋
first of all i think you should use version 1.x of expo-share-intent
(currently v1.1.1) instead of v0.3 as you're using expo 50. I should add a warning about that in the prebuild output :)
concerning your problem, i don't think it's really important as the warning is not shown in a production build. I didn't find any deeplink configuration for custom parsing in expo-router
... It's clearly something about [...unmatched]
routes.
An other way it's to tricks the route, what about :
adding [...unmatched].tsx
:
import { Home } from './index';
export default Home;
or specific screen app/dataUrl=xmyappShareKey.tsx
:
import { Home } from './index';
export default Home;
but feel a bit hacky.
Hi @achorein,
Thank you. I upgraded to version 1.1.1 and everything works great.
It is a great idea to actually expose the Home page.
It might feel a bit hacky, but it fits my use-case scenario perfectly.
Best reagards,
nik
FYI I updated the example for expo-router
using ShareIntentProvider
which requires the use of [...unmatched]
(only on first app startup)
@achorein Thank you very much for your time!
Hi, thank you very much for this package!
Describe the bug I am using expo 50, with app-/directory-based routing.
When the share happens, I see the "Unmatched Route" with the following address:
myapp:///dataUrl=myappShareKey
.The rest of the stuff works, e.g., I am able to access the shared data from the share intent context.
To Reproduce Expo 50 App-based router
Using the following approach in the component (after defining the Share Intent Provide at the root layout, as shown in the example):
Environment give the output of the following command
npx react-native info
Additional context I can add an
[...unmatched]
route, however I don't want to see a blank screen, and instead - remain in the page where the app is currently at.Thank you for providing us with this uber-awesome package.
Best,
nik