1.1.9 β€’ Published 4 years ago

react-native-url-preview v1.1.9

Weekly downloads
948
License
MIT
Repository
github
Last release
4 years ago

react-native-url-preview 🐜

NPM

Parses text and wraps URLs , transform the url to a beautiful link preview

Getting started 🐜

$ npm install react-native-url-preview --save

Usage 🐜

import RNUrlPreview from 'react-native-url-preview';

<RNUrlPreview text={"any text to be parsed , https://www.youtube.com/watch?v=Kmiw4FYTg2U"}/>

Examples🐜

Please refer to the react-native-url-preview example provided to see how react-native-url-preview can be used .

Demo🐜

Customization 🐜

ParameterRequired?DefaultTypeDescription
textYESNullstringThe text that is parsed and where the URL is retrieved
titleNOTrueBooleandetermine whether the URL title is displyed or not
titleStyleNOdefaultStylestyleself explanatory i believe
containerStyleNOdefaultStylestyleyou can pass a custom container style
imageStyleNOdefaultStylestyleyou can pass a custom image style
faviconStyleNOdefaultStylestyleyou can pass a custom favicon style
textContainerStyleNOdefaultStylestyleyou can pass a custom style for the text container
descriptionStyleNOdefaultStylestyleself explanatory i believe
titleNumberOfLinesNO2numberself explanatory i believe
descriptionNumberOfLinesNOIpad?4:3numberself explanatory i believe
imagePropsNO{ resizeMode: "contain"}objectyou can pass a custom props to image
onLoadNO() => {}functioncallback called when url preview data is loaded
onErrorNO() => {}functioncallback called if url preview fails to load

Credits 🐜

1.1.9

4 years ago

1.1.8

4 years ago

1.1.7

4 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.0

5 years ago