Skip to content

Commit 56beb21

Browse files
ericboyanganjoshswan
authored andcommitted
Extract truncateLocation from props (#40)
Currently `truncateLocation` is read as an "other" prop and sent into `<Text>`, which if you're using React Native Web (https://github.com/necolas/react-native-web) raises the warning: ```Warning: React does not recognize the `truncateLocation` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `truncatelocation` instead. If you accidentally passed it from a parent component, remove it from the DOM element.``` I am not sure if swallowing it here has other implications.
1 parent ceb8416 commit 56beb21

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ export default class Autolink extends PureComponent {
199199
text,
200200
truncate,
201201
truncateChars,
202+
truncateLocation,
202203
twitter,
203204
url,
204205
webFallback,

0 commit comments

Comments
 (0)