1.0.2 • Published 2 years ago

rn-forgot-screen v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

rn-forgot-screen A customizable forgot screen component for React Native projects. Use this open source library in your fresh React Native project for instant startup.

Table of Contents

Installation

To use rn-forgot-screen in your React Native project, simply install it using npm or yarn:

npm install rn-forgot-screen
or
yarn add rn-forgot-screen

Usage

To use the forgot screen component in your app, import it from the rn-forgot-screen package and render it as the second component in your app after splash screen. You can customize the appearance and behavior of the forgot screen by passing in props.

How to use

import ForgotPassword from "rn-forgot-screen";

function App() {
  return (
    <ForgotPassword
      placeholderMail={"Email"}
      headingText={"Forgot Password"}
      headingTextStyle={""}
      submitText={"Submit"}
      useLogo={true}
      LogoPosition={"center"}
      bgSource={require("./src/assets/black1.jpg")}
      source={require("./src/assets/cropped.png")}
      positionText={"center"}
      useBg={true}
    />
  );
}

Props

The forgot component accepts the following props:

Prop NameData TypeDescription
placeholderMailanyYour Email
---------------------------------------------------------------
inputStyleanystyle to input
--------------------------------------
headingTextanymain heading
-----------------------------
headingTextStylespecified path(req)style to heading
-----------------------------
submitTextanyYour submitText
-----------------------------
useLogoboolUsing Logo or not
-----------------------------
LogoPositionspecified valuesLogo position
-----------------------------
bgSourcespecified path(req)Your background image
-----------------------------
sourcespecified path(req)Logo source
-----------------------------
imageStyleanyStyle to Logo
-----------------------------
positionTextspecified valuesBox alignment
-----------------------------
buttonStyleanyStyle to button
-----------------------------
buttonTextStyleanyStyle to button Text
-----------------------------
placeholderColoranyPlaceholder Color
-----------------------------
bgStyleanyStyle to background Image
-----------------------------
onBluranyonBlur
-----------------------------
onFocusanyonFocus
-----------------------------
onKeyPressanyonKeyPress
-----------------------------
handleForgotPasswordanyonPress for handleForgotPassword
-----------
usebgbololuse bg or not

Contributors

We would like to thank the following developers for their contributions to this project:

To all our contributors, thank you for your hard work and dedication!

License

This package is released under the MIT License.