Skip to content

Commit 088c6f6

Browse files
authored
Need <Text> Tag in <Link> for React Native (#9029)
* [Update] Need <Text> Tag in <Link> for React Native <Link> Tag needs <Text> in React Native for usage, otherwise throws Errors * Update contributors.yml
1 parent 94a535d commit 088c6f6

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

contributors.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,4 @@
7171
- vijaypushkin
7272
- vikingviolinist
7373
- xcsnowcity
74+
- SkayuX

docs/components/link-native.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ function Home() {
3737
return (
3838
<View>
3939
<Text>Welcome!</Text>
40-
<Link to="/profile">Visit your profile</Link>
40+
<Link to="/profile">
41+
<Text>Visit your profile</Text>
42+
</Link>
4143
</View>
4244
);
4345
}

0 commit comments

Comments
 (0)