npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

sld-react-components

v1.0.5

Published

npm package with all the SLD components

Downloads

4

Readme

Description:

- This package is all about some predefined components, which we can use in any "React-Native" application to design and render the SLD Diagram, in a very simple manner
- This package was developed using "Typescript" language and "SVG.js" Library based upon "react-native-svg" package

** Note: Before going for installation make sure you have installed all the dependent packages **

Package Details:

Package Name: sld-react-components
Version: 1.0.5
Author: Fluentgrid
License: Proprietory

Dependencies:

react: "^18.2.0"
react-native: "^0.73.5"
react-native-svg: "^15.0.0"

Installation:

** Note: Before going for installation make sure you have installed all the dependent packages **

Open your command prompt and type "npm install sld-react-components" or "npm i sld-react-components" 

Verify:

Open your "node_module" folder and check "sld-react-components" is present or not

Steps To Use In The Application:

Step 1:
    Import the component along with the package

Step 2:
    - Use the component similar to other react-component by giving the value in the parameter
    - Parameter is nothing but the "index","x1","x2","y1","y2". Give the appropriate value to the paameter  according to your use case

    - Here is the sample code for your reference:

        import { StyleSheet, View,  } from 'react-native';
        import { Substation, DTR, SVGLine, Pole, Ptr } from 'sld-react-components/components';
        import Svg  from 'react-native-svg';

        export default function App() {
            return (
                <View style={styles.container}>
                    <Svg height="1200" width="1100">
                        <Substation index={1} xPosition1={100} xPosition2={0} yPosition1={200} yPosition2={0} />

                        <SVGLine xPosition1={150} xPosition2={1000} yPosition1={225} yPosition2={225} />

                        <DTR index={1} xPosition1={210} xPosition2={0} yPosition1={225} yPosition2={0} />
                        <DTR index={1} xPosition1={300} xPosition2={0} yPosition1={225} yPosition2={0} />

                        <Pole index={1} xPosition={400} yPosition={225} />
                        <SVGLine xPosition1={400} xPosition2={400} yPosition1={190} yPosition2={215} />
                        <DTR index={1} xPosition1={380} xPosition2={0} yPosition1={160} yPosition2={0} />

                        <DTR index={1} xPosition1={490} xPosition2={0} yPosition1={225} yPosition2={0} />
                        <DTR index={1} xPosition1={580} xPosition2={0} yPosition1={225} yPosition2={0} />

                        <Pole index={1} xPosition={680} yPosition={225} />
                        <SVGLine xPosition1={680} xPosition2={680} yPosition1={190} yPosition2={215} />
                        <DTR index={1} xPosition1={660} xPosition2={0} yPosition1={160} yPosition2={0} />

                        <DTR index={1} xPosition1={750} xPosition2={0} yPosition1={225} yPosition2={0} />
                        <DTR index={1} xPosition1={850} xPosition2={0} yPosition1={225} yPosition2={0} />

                    </Svg>
                </View>
            );
        }

        const styles = StyleSheet.create({
            container: {
                flex: 1,
                backgroundColor: '#fff',
                alignItems: 'center',
                justifyContent: 'center',
            },
        });
    

    ** The above code you can paste in your "App.tsx" to print the sample SLD diagram using some componnts of this package ** 

Step 3:
    Run your application