Skip to content

Commit

Permalink
Need <Text> Tag in <Link> for React Native (#9029)
Browse files Browse the repository at this point in the history
* [Update] Need <Text> Tag in <Link> for React Native

<Link> Tag needs <Text> in React Native for usage, otherwise throws Errors

* Update contributors.yml
  • Loading branch information
SkayuX committed Jul 4, 2022
1 parent 94a535d commit 088c6f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions contributors.yml
Expand Up @@ -71,3 +71,4 @@
- vijaypushkin
- vikingviolinist
- xcsnowcity
- SkayuX
4 changes: 3 additions & 1 deletion docs/components/link-native.md
Expand Up @@ -37,7 +37,9 @@ function Home() {
return (
<View>
<Text>Welcome!</Text>
<Link to="/profile">Visit your profile</Link>
<Link to="/profile">
<Text>Visit your profile</Text>
</Link>
</View>
);
}
Expand Down

0 comments on commit 088c6f6

Please sign in to comment.