You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+3
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,8 @@ All the props are passed down to a new `Text` Component if there is a matching t
15
15
16
16
`renderText`: Function called to change the displayed children.
17
17
18
+
`childrenProps` : Properties to pass to the children elements generated by react-native-parsed-text.
19
+
18
20
eg:
19
21
Your str is ```'Mention [@michel:5455345]'``` where 5455345 is ID of this user and @michel the value to display on interface.
20
22
Your pattern for ID & username extraction : ```/\[(@[^:]+):([^\]]+)\]/i```
@@ -76,6 +78,7 @@ class Example extends React.Component {
76
78
{pattern:/#(\w+)/, style:styles.hashTag},
77
79
]
78
80
}
81
+
childrenProps={{allowFontScaling:false}}
79
82
>
80
83
Hello this is an example of the ParsedText, links like http://www.google.com or http://www.facebook.com are clickable and phone number 444-555-6666 can call too.
81
84
But you can also do more withthispackage, for example Bob will change style and David too. foo@gmail.com
0 commit comments