Deep linking
References: Deep linking & Configuring links
Setup
Follow the Set up with bare React Native projects to setup deep linking.
Configuring links
App.tsx
import React from 'react';
import RouterRoot from 'react-native-auto-route';
const App = () => {
return <RouterRoot linking={{prefixes: ['mychat://']}} />;
};
export default App;
Testing deep links
npx uri-scheme open [your deep link] --[ios|android]
For example:
npx uri-scheme open "mychat://chat/jane" --ios