New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

react-native-show-more-button

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-show-more-button

'Show More' button to display more/less items which are inside of the <ShowMore> element.

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

react-native-show-more-button

Installation

npm install react-native-show-more-button --save
import ShowMore from 'react-native-show-more-button';

Example

Props

height -> height of component when it's closed. Default value is 250.
showMoreText -> Show More button text. Default string is "Show More".
showLessText -> Show Less button text. Default string is "Show Less".
buttonColor -> color of show more/less text. Default value is "#AAAAFF".

Usage (without props)

// import component
import ShowMore from 'react-native-show-more-button';


//usage:
<ShowMore>

</ShowMore>

Usage (with props)

// import component
import ShowMore from 'react-native-show-more-button';

//usage:
<ShowMore height={400} buttonColor={"#FF0000"} showMoreText="Open" showLessText="Close">

</ShowMore>

Example Code

import React from 'react';
import { Image, Text, View, ScrollView } from 'react-native';
import ShowMore from 'react-native-show-more-button';

export default class App extends React.Component {
  constructor(props) {
    super(props);
  }

  render() {
    return (

      <View>
        <ScrollView>
          <ShowMore>
            <View style={{ justifyContent: 'center', alignItems: 'center' }}>

              <Image source={require('./1.png')} />

              <Text>wowowowowowowowowowwowo</Text>
              <Text>What a LOGO!</Text>
              <Text>This is just a test script</Text>
              <Text>for Show More react-native module</Text>
              <Text>Dope, right?</Text>

              <Image source={require('./2.jpg')} />

              <Text>This is a logo with number 6 in it</Text>
              <Text>We are going to see if this package works well!</Text>
              <Text>------------------------------------</Text>
              <Text>Well, looks like it works, right?</Text>
              <Text>Easy to use!</Text>
              <Text>react-native-show-more-button</Text>

              <Image source={require('./2.jpg')} />

              <Text>Okay.</Text>

            </View>
          </ShowMore>
        </ScrollView>
      </View>
    );
  }
}

FAQs

Package last updated on 19 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