🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

react-native-text-collapse

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

react-native-text-collapse

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

0.0.1
unpublished
latest
Source
npm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 15 Dec 2018

Did you know?

Socket

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