LunatiqueCoder / luna

Luna - a React Native + Next.js template. Built with TypeScript :heart:
https://luna-gamma.vercel.app/
MIT License
264 stars 17 forks source link

Configured deep linking #57

Closed LunatiqueCoder closed 1 year ago

LunatiqueCoder commented 2 years ago

Summary

This PR improves deep linking and shows my journey trying to learn and understand them.

Steps to configure:

  1. Be sure to add yourschemename to your linking prefixes.

  2. npx uri-scheme add yourschemename

To test it, run:

npx uri-scheme open yourschemename://details

Edit: I managed to make it work for Android only by the above commands. Opening [yourschemename]://details from the website section of a contact (from the phonebook) for example won't wont.

Troubleshooting:

Simply remove @types/react-dom from package.json for the time being. Uninstall not required.

Use 10.0.2.2 instead of localhost