
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
react-native-slider-design
Advanced tools
A react-native component customable developed in typescript !

| Plateform | Compatibility |
|---|---|
| Android | YES |
| IOS | YES |
npm -i react-native-slider-design
or
yarn add react-native-slider-design
Becarful the basic usage use the package react-native-vector-icons package to render SVG icons. If you are not using this package you also can use any component you want.
import React, { Fragment } from 'react';
import {
SafeAreaView,
} from 'react-native';
import Icon from 'react-native-vector-icons/dist/FontAwesome';
import Slider from './src/Slider/Slider';
const datas = [
{
onPress: (id: any) => (console.log(id)),
id: 0,
icon: <Icon name="rocket" size={30} color="#900" />,
},
{
onPress: (id: any) => (console.log(id)),
id: 1,
icon: <Icon name="ambulance" size={30} color="#100" />
},
{
onPress: (id: any) => (console.log(id)),
id: 2,
icon: <Icon name="anchor" size={30} color="#723900" />
}
]
const App = () => {
return (
<Fragment>
<SafeAreaView style={{ backgroundColor: '#003972', justifyContent: 'center', flex: 1 }}>
<Slider datas={datas}
staticDesign
style={{
container: {
marginTop: '2%',
}
}}
/>
<Slider datas={datas}
style={{
container: {
marginTop: '2%',
}
}}
/>
<Slider datas={datas}
opacity
style={{
container: {
marginTop: '2%',
}
}}
/>
</SafeAreaView>
</Fragment>
);
};
export default App;
| Prop | Type | Optional | Default | Description |
|---|---|---|---|---|
| datas | SliderType | NO | [ { } ] | Datas used to render the slider |
| startIndex | number | YES | 0 | The start index of the slider |
| opacity | boolean | Yes | 1 | If true the opacity will be set at 0.2 |
| style | StyleSheet | YES | { } | Styling the component use container structure to styling the slider's container / use the ActiveItem to style the active item / use the InactiveItem to style the active items. |
MIT Licensed
FAQs
react-native component slider designed
We found that react-native-slider-design 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.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.