Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
react-native-expanding-collection-view
Advanced tools
React Native component for creating animated, expanding collection
Our company provides custom UI design and development solutions for mobile applications and websites.
Need a team to create a project?
This project is developed and maintained by openGeeksLab LLC.
Just run:
For the work with the library you have to use the next parameters:
data
- is the array of objects that contains the information required to display on the card.
renderFrontCard
- is the function that renders the front card. It should return the component that is used as a card and can get the parameters of itemData
and animation
. itemData
- is the data for this card. animation
- is the animation for the card.
import AnimatedBackground from './backgroundImage';
...
renderFrontCard = (itemData, animation) => (
<AnimatedBackground
source={ itemData.img }
imageStyle={styles.backgroundImage}
style={{
height: animation.interpolate({
inputRange: treshholds,
outputRange: [0, 1, 1],
}),
borderRadius: animation.interpolate({
inputRange: treshholds,
outputRange: [0, values.borderRadius, values.borderRadius],
}),
}}
/>
)
renderBackCard
- is the function that renders the back card. It should return the component that is used as a card or as the opened screen and can get the parameters of itemData
and animation
.
renderDescription
- is the function that renders the description at the bottom of the front card and can get the parameters of itemData
and animation
. It should return a component that is used as a description and can get the parameters of data and animation.
inactiveSlideOpacity
- is the transparency of the inactive card (from 0 to 1)
frontCardColor
- is the color of the background of the front card.
backCardColor
- is the color of the background of the back card.
import ExpandingCollection from 'react-native-expanding-collection-view';
...
<ExpandingCollection
data={cities}
cardBorder={30}
frontCardColor={'transparent'}
renderFrontCard={this.renderFrontCard}
renderBackCard={this.renderBackCard}
renderDescription={this.renderDescription}
/>
Expanding is released under the MIT license.
FAQs
React Native component for creating animated, expanding collection
We found that react-native-expanding-collection-view demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.