• Stars
    star
    155
  • Rank 240,864 (Top 5 %)
  • Language
    TypeScript
  • Created about 5 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

πŸš€ Fully Customizable Beautiful React Native Login Screen

React Native Login Screen

Battle Tested βœ…

One Line of Code to Plug & Play | Fully Customizable Beautiful React Native Login Screen

npm version npm Platform - Android and iOS License: MIT

React Native Login Screen

πŸ₯³ Version 5

Version 5 with the completely new UI

  • Whole new UI / UX Design 😍
  • Built-in Email Validation πŸ“§
  • Built-in Password Validation πŸ”’
  • Built-in Email Tooltip πŸ“§
  • Built-in Password Tooltip πŸ”’
  • Built-in Show/Hide Password Feature πŸ‘€
  • Fully Customizable 🎨
  • Better Code Quality πŸš€
  • Ready to use SocialButton Component
  • Only ONE dependency is needed

Installation

Add the dependency:

npm i react-native-login-screen

Peer Dependencies

IMPORTANT! You need install them.
npm i react-native-text-input-interactive
"react-native-text-input-interactive": ">= 0.1.3"

Import

import LoginScreen from "react-native-login-screen";

Usage

const [username, setUsername] = React.useState('');
const [password, setPassword] = React.useState('');

<LoginScreen
  logoImageSource={require('./assets/logo-example.png')}
  onLoginPress={() => {}}
  onSignupPress={() => {}}
  onEmailChange={setUsername}
  onPasswordChange={setPassword}
  enablePasswordValidation
/>

Basic Signup Screen Usage

<LoginScreen
  logoImageSource={require('./assets/logo-example.png')}
  onLoginPress={() => {}}
  onSignupPress={() => {}}
  onEmailChange={setUsername}
  loginButtonText={'Create an account'}
  disableSignup
  textInputChildren={
    <View style={{marginTop: 16}}>
      <TextInput
        placeholder="Re-Password"
        secureTextEntry
        onChangeText={setRepassword}
      />
    </View>
  }
  onPasswordChange={setPassword}
/>

Usage with Social Button

You can put any children into the LoginScreen, I recommend you to use SocialButton.

Configuration - Props

Fundamentals

Property Type Default Description
onLoginPress function undefined set your own function when the login button is pressed
onSignupPress function undefined set your own function when the Create an account is pressed
onEmailChange function undefined set your own function when email textinput has a change
onPasswordChange function undefined set your own function when password textinput has a change

Customizations (Optional)

Property Type Default Description
onEyePress function undefined set your own function when eye icon button is pressed
signupText string "Create an account" change the sign up text
disableSignup boolean false disable the signup if you do not want to use it
disableDivider boolean false disable the divider if you do not want to use it
disableSocialButtons boolean false disable the all social buttons
disablePasswordInput boolean false disable the password text input
disableEmailValidation boolean false disable built-in email validation
disableEmailTooltip boolean false enable built-in password validation
disablePasswordTooltip boolean false disable built-in email tooltip
disableEmailTooltip boolean false disable built-in password tooltip
emailPlaceholder string "Email" change email placeholder text
passwordPlaceholder string "Password" change password placeholder text
loginButtonText string "Login" change login button's text
style ViewStyle default set/override the default style for the container
dividerStyle ViewStyle default set/override the default divider style
logoImageStyle ImageStyle default set/override the default image style
textInputContainerStyle ViewStyle default set/override the default text input container style
loginButtonStyle ViewStyle default set/override the default login button style
loginTextStyle TextStyle default set/override the default login text style
signupStyle ViewStyle default set/override the default signup button style
signupTextStyle TextStyle default set/override the default signup text style
signupTextStyle TextStyle default set/override the default signup text style
passwordContentTooltip Component default set on your own tooltip content for password
emailContentTooltip Component default set on your own tooltip content for email

Advanced Customizations (Optional)

Property Type Default Description
customTextInputs Component default set your own custom text inputs instead of built-in ones
textInputChildren Component default set your own EXTRA custom text inputs with the current ones
customLogo Component default set your own logo
customLoginButton Component default set your login button
customSignupButton Component default set your sign up button
customDivider Component default set your divider
customLoginButton Component default set on your own components instead of default login button
customSignupButton Component default set on your own components instead of default signup button
TouchableComponent Pressable TouchableOpacity set on your own Touchable Component
customTextInputs Component default set on your own textinputs instead of default ones
customSocialLoginButtons Component default set on your own components instead of default social login buttons
emailTextInputProps IInteractiveTextInputProps default set/override the email text input props
passwordTextInputProps IInteractiveTextInputProps default set/override the password text input props

Default Social Login Buttons (Optional)

Property Type Default Description
onFacebookPress function undefined set your own function for the Facebook social button press
onTwitterPress function undefined set your own function for the Twitter social button press
onApplePress function undefined set your own function for the Apple social button press
onDiscordPress function undefined set your own function for the Discord social button press

Version 2 is still available

if you do not like the new design, you can still use the old design :)

React Native Login Screen

Roadmap

  • LICENSE
  • Android Design Bug Fixes
  • Configuration - Props COMING SOON
  • Typescript Challenge!
  • Remove some dependencies
  • Better TextField Library Integration
  • Password show/hide
  • Customizable Components
  • Customizable Styles
  • Built-in Email Validation
  • Built-in Password Validation
  • Built-in Email Tooltip
  • Built-in Password Tooltip
  • Write an article about the lib on Medium
  • Write an article about the lib on DevTO

Credits

For the awesome photo thanks to jcob nasyr from Unsplash Thank you so much for the eye icon Torskaya

Author

FreakyCoder, [email protected]

License

React Native Login Screen is available under the MIT license. See the LICENSE file for more info.

More Repositories

1

react-native-header-view

Fully customizable Header View with multiple design options for React Native.
Java
548
star
2

react-native-dynamic-search-bar

Medium Article: https://freakycoder.com/react-native-library-dynamic-search-bar-c03fea9fae36
Java
481
star
3

react-native-bouncy-checkbox

Fully customizable animated bouncy checkbox for React Native
Java
462
star
4

react-native-apple-card-views

Customizable and perfect clone of Apple, App Store Card Views for React Native.
Java
336
star
5

react-native-typescript-boilerplate

πŸš€ Awesome fundamental features with Typescript support React Native Boilerplate
TypeScript
210
star
6

react-native-beautiful-timeline

Fully customizable, beautifully designed Timeline for React Native.
Java
175
star
7

StompClientLib

Simple STOMP Client library, Swift 3 and 4, 4.2, 5 compatible
Swift
142
star
8

react-native-gradient-header

Fully customizable and unique shape Gradient Header for React Native
JavaScript
138
star
9

react-native-header-search-bar

Fully customizable header search bar for React Native
JavaScript
111
star
10

react-native-imaged-carousel-card

Fully customizable & Lovely Imaged Carousel Card for React Native
JavaScript
99
star
11

react-native-dynamic-vector-icons

Wrapper of react-native-vector-icons to use dynamic types
TypeScript
86
star
12

react-native-single-select

Customizable & Easy to Use Single Select Library for React Native
TypeScript
85
star
13

react-native-progressive-fast-image

Customizable progressive image for React Native with FastImage
TypeScript
82
star
14

react-native-internet-connection-alert

Fully customizable internet connection listener with the built-in alert for React Native
Java
74
star
15

react-native-bottom-bar

Fully customizable BottomBar with unique design shape for React Native.
JavaScript
73
star
16

react-native-helpers

All helpers in one; iPhone series support, dimensions helper, hasNotch helper, normalize text helper and text helpers for React Native with very easy useEasy to use & awesome helpers for React Native.
TypeScript
71
star
17

react-native-gradient-card-view

Fully customizable Gradient Card View for React Native.
TypeScript
67
star
18

react-native-bounceable

πŸš€ Animate and bounce any component with RNBounceable for React Native
Java
56
star
19

react-native-typescript-library-starter

Ready to Rock πŸ”₯
JavaScript
53
star
20

react-navigation-helpers

Helpers for React Navigation
Java
49
star
21

MediaPickerLib

Kotlin based media picker library, to pick multiple images and/or vidoes from built-in gallery. Easy to implement and use :)
Kotlin
48
star
22

react-native-floating-action-button

Fully customizable Floating Action Button for React Native
JavaScript
47
star
23

react-native-redux-boilerplate

React Native Redux Boiler Plate
JavaScript
38
star
24

react-native-poll

Voting and poll library for React Native with fully customizable options
TypeScript
38
star
25

react-native-multiple-select

Customizable & Animated, Easy to Use Multiple Select Library for React Native
TypeScript
36
star
26

react-native-button

Fully customizable, Gradient, Outline and Solid Button for React Native.
TypeScript
34
star
27

MJPEGStreamLib

Simple and easy to use MJPEG Stream Library. It contains authentication if your stream url needs a username/password. It is based on UIImageView so it is all up to your custom design.
Swift
32
star
28

react-native-text-input-interactive

Fully customizable, animated text input for React Native with beautiful and elegant design
Java
32
star
29

react-native-duo-toggle-switch

Fully customizable animated duo toggle switch for React Native
Java
31
star
30

react-native-permissions-modal

Awesome & Fully Customizable Permissions Modal for React Native
JavaScript
31
star
31

react-native-time-date-picker

πŸš€ Easy to use time and date picker with lots of options for React Native πŸ₯³
TypeScript
28
star
32

react-native-dynamic-text-loading

Dynamically changes the text while loading screen for React Native. This is the loading like Heartstone and Discord's dynamically changes loading texts :)
JavaScript
27
star
33

react-native-picker-modal

Easy and fully customizable picker modal for React Native
TypeScript
26
star
34

react-native-animation-layout

Custom & Ready to GO partially customizable Animation Layouts for React Native.
JavaScript
25
star
35

react-native-animated-radio-button

Fully customizable animated radio button for React Native
Java
25
star
36

react-native-monthly

Animated and customizable monthly calendar for React Native
TypeScript
24
star
37

react-native-segmented-control-2

πŸš€ React Native Segmented Control, Pure Javascript for iOS and Android
Java
21
star
38

react-native-imaged-card-view

Rising Imaged Card View with Awesome Shadows and Fully Customizable Library for React Native
JavaScript
21
star
39

react-native-animated-component

Animate any component with React Native Animated Component
Java
20
star
40

react-native-easy-state-view

Fully customizable State View for React Native.
Java
20
star
41

react-native-circular-card-view

Fully customizable Circular Card View for React Native
JavaScript
20
star
42

react-native-rounded-checkbox

Rounded Checkbox with animated and fully customizable options library for React Native
TypeScript
20
star
43

react-native-text-area

Simple and easy to use TextArea for React Native.
Java
20
star
44

react-native-bottom-search-bar

Elegant & Cool also fully customizable bottom search bar for React Native.
Java
20
star
45

react-native-permission-service

Easy to use permission service which is all handled by itself for both iOS and Android on React Native
TypeScript
19
star
46

react-native-typescript-zustand-boilerplate

πŸš€ Ready to start Zustand Typescript React Native Boilerplate 🌟
TypeScript
19
star
47

react-native-checkbox-card

Checkbox Card is customizable and animated built-in check state integration for React Native
TypeScript
18
star
48

react-native-counter-input

Counter Input with fully customizable options for React Native
TypeScript
18
star
49

react-native-switch-button

Animated switch button with fully customizable React Native Component
TypeScript
18
star
50

iOS-StatusBar-Example

Medium Article: https://freakycoder.com/ios-notes-13-how-to-change-status-bar-color-1431c185e845
Swift
17
star
51

react-native-bouncy-checkbox-group

Fully customizable bouncy checkbox group for React Native
TypeScript
16
star
52

react-native-social-login-screen

Easy Login Screen with beautiful design and fully customizable options for React Native
TypeScript
16
star
53

react-native-colorful-card

Fully customizable colorful card component for React Native
TypeScript
16
star
54

react-native-animated-radio-button-group

Fully customizable, animated & easy to use radio button group
Java
16
star
55

react-native-subscribe-card

Beautifully designed & fully customizable subscribe card for React Native
TypeScript
15
star
56

react-native-instagram-story-circle

Fully customizable Instagram Story Circle with Bounceable Animated Library for React Native
TypeScript
15
star
57

react-native-alert-modalize

Awesome styled, fully customizable alert modalize for React Native.
JavaScript
14
star
58

react-native-bottom-menu

Fully customizable Bottom Menu for React Native.
JavaScript
14
star
59

react-native-image-swiper

Fully customizable & extremely easy to use Image Swiper for React Native
Java
14
star
60

Instagram-Style-Gradient-Background-Transition

Instagram Style Animated Gradient Background Login Screen
Java
14
star
61

react-native-typescript-redux-boilerplate

Awesome fundamental features with Typescript support and ready to use Redux implementation React Native Boilerplate
TypeScript
13
star
62

react-native-whatsnew-kit

Plug & Play, beautiful WhatsNewKit for React Native
JavaScript
13
star
63

react-native-review-modal

Review Modal with dynamic rate system and comment feature for React Native
JavaScript
12
star
64

react-native-gorgeous-header

Fully customizable & easy to use gorgeous header view for React Native
Java
12
star
65

react-native-flex-divider

Fully customizable flex divider with a easy use for React Native
Java
12
star
66

react-native-star-review

Fully customizable Star Review for React Native.
JavaScript
12
star
67

react-native-shake-text

TypeScript
11
star
68

react-native-custom-text

TypeScript
11
star
69

react-native-ticket-modal

Ready to GO Ticket Modal for React Native.
JavaScript
11
star
70

react-native-checkbox-flex

Fully customizable, easy to use checkbox with flexible component by React Native on Android and iOS
TypeScript
11
star
71

react-native-apple-header

React Native Apple Header
TypeScript
10
star
72

react-native-empty-state

Empty State library which is fully customizable and simple for any state view use-cases
Java
10
star
73

React-Native-Media-Controls

A sweet UI component to manipulate your media
JavaScript
10
star
74

react-native-beautiful-horizontal-list

JavaScript
10
star
75

react-native-premium-table

Fully customizable, easy to use premium table for React Native
Java
9
star
76

react-native-modern-header

React Native Modern Header
Java
9
star
77

react-native-image-picker-modal

Easy to use image picker modal with awesome iOS Picker design for React Native
Java
9
star
78

react-native-global-modal-2

🌍 Global modal and callable from anywhere on the app for React Native
TypeScript
9
star
79

react-native-ios-like-navigation-transition

Java
9
star
80

react-native-basic-modal

Basic & Elegant Modal for React Native
Java
9
star
81

react-native-profile-header

Customizable Profile Header with cool icons for React Native
TypeScript
8
star
82

react-native-social-auth-helper

React Native Social Auth Helper
Java
8
star
83

react-native-text-input

React Native Text Input
Java
8
star
84

react-native-imaged-card

Beautiful and Fully Customizable Imaged Card for React Native
JavaScript
8
star
85

react-native-easy-cached-image

Easy Peasy Cached Image for React Native.
JavaScript
8
star
86

react-native-improved-text-input

Improved Text Input with placeholder style option for React Native
Objective-C
6
star
87

react-native-custom-icon

Medium Article: https://freakycoder.com/react-native-library-react-native-custom-icon-1ec0b734d691
JavaScript
6
star
88

react-native-pure-boilerplate

React Native Pure BoilerPlate
JavaScript
6
star
89

react-native-countdown

Moment based extremely easy to use Countdown for React Native
Java
6
star
90

react-native-multi-grid-selection

Fully customizable Multi Grid Card Selection component for React Native on both iOS and Android
TypeScript
5
star
91

react-native-beautiful-state-view

Fully customizable & Beautiful State View for React Native
Java
5
star
92

React-Native-Translucent-StatusBar-Example

Medium Article:
Objective-C
5
star
93

react-native-rounded-checkbox-group

Fully customizable react native checkbox group for React Native
Java
5
star
94

react-use-state-with-callback

Make the useState hook with a callback for React and React Native
Java
5
star
95

react-native-permission-item

Customizable, easy to use permission item component for React Native
TypeScript
4
star
96

react-native-get-premium-screen

Easy to use and fully customizable get premium screen for React Native
TypeScript
4
star
97

react-native-dash-2

Java
4
star
98

react-native-social-button

Easy & Elegant Social Button for React Native
JavaScript
3
star
99

react-native-splash-screen-example

React Native Notes 25: How to build a native Splash Screen on React Native App?
TypeScript
3
star
100

react-native-card-collection

Easy to use & Ready to Go Fully Customizable Awesome Card Collection for React Native.
JavaScript
3
star