Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用一个深层链接,它将我发送到特定页面中的我的应用程序,但我想阅读该页面的链接。例如:我的链接是“my app://somepage/code=123”,我想在打开链接后从 url 中获取这个代码值。
你只需params要从route
params
route
const Example = ({navigation, route})=>{ const code = route.params.code; }