
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-railroad
Advanced tools
<Animated.View /> that can be configured through props.

npm install --save react-native-railroad
After installing the package simply import it and use it as a RailRoad component.
RailRoad is a stateless functional component.
import { RailRoad } from 'react-native-railroad';
<RailRoad
index={2}
maxIndex={3}
circleSize={10}
color="#fbb121"
shape='circle'
mode='exclusive'
/>
| Props | Default Values | Behaviour |
|---|---|---|
| maxIndex | 4 | Total units in the railroad. |
| color | "#e6e600" | The color to be applied mark the current state in the railroad. |
| index | 2 | It marks the stages in the railroad. For a value of index=2 on a maxIndex value=4, the specified color will be applied to mark the two out of the max four units of the railroad. |
| shape | 'circle' | Currently only two shapes can be used i.e. 'line' and 'circle'. |
| circleSize | 10 | Must be provided if shape has been defined as 'circle'. |
| mode | 'exclusive' or 'inclusive' | 'Inclusive' mode will render all the shapes with the provided colors till the index value that marks the current stage in the railroad whereas 'exclusive' mode only colors the shape at index value and the remaining shapes wont be styled. |
| emptyFill | "#ccc" | If a color is provided the empty shapes will be styled with it or else an opaque style will be applied with a borderWidth of 1 and color value of '#adad85'. |
FAQs
A simple railroad component.
We found that react-native-railroad 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
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.