
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
react-native-show-more-button
Advanced tools
'Show More' button to display more/less items which are inside of the <ShowMore> element.
npm install react-native-show-more-button --save
import ShowMore from 'react-native-show-more-button';

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".
// import component
import ShowMore from 'react-native-show-more-button';
//usage:
<ShowMore>
</ShowMore>
// import component
import ShowMore from 'react-native-show-more-button';
//usage:
<ShowMore height={400} buttonColor={"#FF0000"} showMoreText="Open" showLessText="Close">
</ShowMore>
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
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.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.