正在加载视频...

视频加载失败

Working on regex support for linking config in React Navigation ✨ Any param name in linking config can be followed by a parenthesis containing a regex. Feedback welcome! Let me know if you want me to test any specific scenario!

11,072 次观看 • 1 年前 •via X (Twitter)

5 条评论

Piotr Tomczewski 的头像
Piotr Tomczewski1 年前

Great feature for @bluesky to enable better profile URLs like

Ronald Kasendwa 的头像
Ronald Kasendwa1 年前

Noooo way! I was just wishing for this some days ago. I needed to send two URL patterns to the same screen but the linking config seems to support one path at a time. I guess a regex fixes this.

Satyajit Sahoo 的头像
Satyajit Sahoo1 年前

I think it's the opposite. If you have the same pattern for 2 screens, the regex can chose appropriate screen based on whether it matches the regexes. Your use case is more like aliases - multiple patterns for single screen. I plan to implement it in future.

Satyajit Sahoo 的头像
Satyajit Sahoo1 年前

It's extremely tricky to make this work. For now you can manually navigate after login by getting the URL with `Linking.getInitialURL` and using it with `useLinkTo`

Cam Shaw 的头像
Cam Shaw1 年前

This looks so damn helpful. I have some different paths to sync between app/web routes on different projects and this will make it so much simpler.

相关视频

Let me know if you need any help
0:25

Sensitive content

Let me know if you need any help

Vivi🌿

44,869 次观看 • 2 年前