Skip to main content

Deep linking

References: Deep linking & Configuring links

Setup

Follow the Set up with bare React Native projects to setup deep linking.

App.tsx
import React from 'react';
import RouterRoot from 'react-native-auto-route';

const App = () => {
return <RouterRoot linking={{prefixes: ['mychat://']}} />;
};

export default App;
npx uri-scheme open [your deep link] --[ios|android]

For example:

npx uri-scheme open "mychat://chat/jane" --ios