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 🙏

© 2025 – Pkg Stats / Ryan Hefner

react-native-loginmodule

v1.1.8

Published

React Native Login module

Downloads

41

Readme

Signup Login Module for react-native

This module is helpful to create the login and signup page with al the validations, this module make the app deisgn in simple way without writing validations in project, all the required validation are done in the module.

No need to TextInput onChange events when using this module.

react-native-loginmodule-preview react-native-loginmodule-preview

Pre-requisites

react-native, node.js and a platform-specific tools needed to compile native NPM module (which you may already have);

when you creating react-native init projectName.

Installation

To install the react-native-loginmodule, simply run the following command within your app's directory:

npm i react-native-loginmodule --save

Development

##Example:

import {UserName, EMail, Password, CustomButton, ButtonAction} from 'react-native-loginmodule';
import React, {Component} from 'react';
import {Container, Content, Form} from 'native-base';
export default class Sample extends Component {
    Login(){
        let AppName = "xxx APP"  // Name of the app
        const url = 'xxxx url'   //Api url
        const fields={EMail:'EMail',Password:'Password'}  // Input fields that used in this class imported from this module
        const headers = {'Content-Type':'application/json','Authorization':'bearer {{token}}'}
        //pass the key like 'Login' for login and 'register' for register
        const parameters = {'AppName':AppName,'url':url,'headers':headers,'fields':fields,'field':'Login'}
        ButtonAction(parameters).then((res)=>{
            if(res != undefined){
                //alert(JSON.stringify(res))
                if(res.isvalid != undefined){
                    console.log('res')
                    \\this is for handling validation alerts
                }else{
                    alert ('RES ID: ' + res.id);
                }
            }
        })
    }
    return (
            <Container>
                <Content contentContainerStyle={{flex:1,justifyContent: 'center'}}>
                    <Form>
                      <UserName />
                      <EMail />
                      <Password />
                    </Form>
                    <CustomButton onPress={this.Login.bind(this)}>Login</CustomButton>
                </Content>
            </Container>
        );
}

###To handle Logout

LogoutAction().then((res)=>{
console.log("res:"+res)   \\here in res it will return logout sucess
})

Fields included in this module

Note: use the fields like this only

   <EMail />
   <FirstName />
   <LastName />
   <Password />
   <PhoneNumber />
   <UserName />
   <FullName />

To apply your custom styles

<EMail style={{width:200,height:60....}}/>

Button used for login and signup

   <CustomButton />