Giter Site home page Giter Site logo

med4u / react-native-url-preview Goto Github PK

View Code? Open in Web Editor NEW

This project forked from maherzaidoune/react-native-url-preview

0.0 0.0 0.0 378 KB

react native text parser and link previewer npm package, it makes a preview from an url, grabbing all the information such as title, relevant texts and images.

JavaScript 100.00%

react-native-url-preview's Introduction

react-native-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🐜

Β  Β  youtube medium

Customization 🐜

Parameter Required? Default Type Description
text YES Null string The text that is parsed and where the URL is retrieved
title NO True Boolean determine whether the URL title is displyed or not
titleStyle NO defaultStyle style self explanatory i believe
containerStyle NO defaultStyle style you can pass a custom container style
imageStyle NO defaultStyle style you can pass a custom image style
faviconStyle NO defaultStyle style you can pass a custom favicon style
textContainerStyle NO defaultStyle style you can pass a custom style for the text container
descriptionStyle NO defaultStyle style self explanatory i believe
titleNumberOfLines NO 2 number self explanatory i believe
descriptionNumberOfLines NO Ipad?4:3 number self explanatory i believe

Credits 🐜

react-native-url-preview's People

Contributors

dependabot[bot] avatar maherzaidoune avatar med4u avatar moneemsaadaoui avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.