Use the following command for android and IOS when the emulator/simulator is running:
npx uri-scheme open deepLinkScheme://code/5 --android
For IOS just change the flag like below
npx uri-scheme open deepLinkScheme://code/5 --ios
That’s it. Other way on IOS is sending a message in simulator and then clicking on that. But on android only https and http schemes can be tested with messaging app.