Socket
Socket
Sign inDemoInstall

react-native-text-collapse

Package Overview
Dependencies
5
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-native-text-collapse

react-native-text-collapse is a light animated React Native Instagram clone text collapser.


Version published
Weekly downloads
0
Maintainers
1
Created
Weekly downloads
 

Readme

Source

react-native-text-collapse

react-native-text-collapse is a light animated React Native Instagram clone text collapser.

Installation

Install react-native-text-collapse using the following command:

npm install react-native-text-collapse --save

Usage

All you need to do is to import Native-Dates into your react native component and easily use it. Example:

import React, {Component} from 'react';  
import {View, StyleSheet} from "react-native";  
import TextCollapse from 'react-native-text-collapse';  
  
export default class App extends Component {
    render() {  
        return (
            <View style={styles.main}>
                <TextCollapse text={"Hi There!"}/>
            </View>
        );
    }  
}  
  
const styles = StyleSheet.create({  
    main: {  
	    flex:1,  
	    width: '100%',  
	    height: '100%',  
	}  
})

Props

Props nameDesciptionValuesDefault value
textThe text you want to collapse(String)'Lorem Ipsum...'
initialTextLengthNumber of characters that is show in collapsed mode(Number)70
containerStyleThe text container style(Style Object)null
textStyleThe text style(Style Object)null
showMoreTextStyle'more' and 'less' words style(Style Object){color: '#858585',paddingStart: 5}
collapseDurationDuration of collapse(Number)250
collapseTypeAnimation type of collapse'spring','easeInEaseOut','linear''spring'
springDampingDamping amount when collapse type is 'spring'(Number)0.7

FAQs

Last updated on 15 Dec 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc