Skip to content

Commit d845cbf

Browse files
committed
Version 2.1.1 is ready
1 parent 5ac72c3 commit d845cbf

15 files changed

Lines changed: 83 additions & 191 deletions

File tree

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ npm i react-native-login-screen
2828

2929
```js
3030
"react-native-spinkit": ">= 1.5.0",
31-
"react-native-material-textfield": "https://github.com/WrathChaos/react-native-material-textfield.git"
31+
"@freakycoder/react-native-helpers": ">= 0.1.3",
32+
"@freakycoder/react-native-material-textfield": ">= 1.0.0"
3233
```
3334

3435
## Import
@@ -105,9 +106,9 @@ Pretty advanced and fully customizable example of login screen
105106
</LoginScreen>
106107
```
107108

108-
### Configuration - Props
109+
## Configuration - Props
109110

110-
#### Fundamentals
111+
### Fundamentals
111112

112113
| Property | Type | Default | Description |
113114
| -------------------------- | :-------: | :------------: | ------------------------------------------------------------------------ |
@@ -119,7 +120,6 @@ Pretty advanced and fully customizable example of login screen
119120
| loginButtonBackgroundColor | color | #282828 | change the login button's background color |
120121
| loginText | string | LOGIN | change the login button's text |
121122
| loginButtonTextStyle | style | default | set your own style for the login button's text style |
122-
| logoText | string | GITHUB | change the logo's text |
123123
| logoComponent | component | Icon | set your own logo component instead of default Icon |
124124
| spinnerEnable | bool | false | set the spinner enable this is **required** to use spinner |
125125
| spinnerVisibility | bool | false | set the logic for spinner enabling / disabling for the login text button |
@@ -128,12 +128,11 @@ Pretty advanced and fully customizable example of login screen
128128
| spinnerType | bool | false | change the spinner type |
129129
| spinnerStyle | bool | false | set your own style for the spinner itself |
130130

131-
#### Bottom Container Props
131+
### Bottom Container Props
132132

133133
| Property | Type | Default | Description |
134134
| ---------------------- | :-------: | :--------------------: | ---------------------------------------------------------------------------- |
135135
| placeholder | string | default | set the placeholder of the text input with both title and placeholder itself |
136-
| IconComponent | component | Icon | set your own component instead of vector-icons' Icon component |
137136
| backgroundColor | color | rgba(255,255,255,0.45) | change the bottom container's background color |
138137
| disableSettings | boolean | false | disable the settings button if you do not want it |
139138
| disableSignupButton | boolean | false | disable the signup button if you do not want it |
@@ -271,7 +270,9 @@ Pretty advanced and fully customizable example of login screen
271270
- [x] ~~Android Design Bug Fixes~~
272271
- [x] ~~Configuration - Props COMING SOON~~
273272
- [x] ~~Typescript Challenge!~~
274-
- [ ] Remove some dependencies
273+
- [x] ~~Remove some dependencies~~
274+
- [ ] ImageComponent Feature Option
275+
- [ ] Better TextField Library Integration
275276
- [ ] Write an article about the lib on Medium
276277

277278
## Credits
-5.11 MB
Loading
58.2 KB
Loading

assets/logo.png

1.64 KB
Loading

example/App.tsx

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { useState } from "react";
2-
import { View, StatusBar, Alert } from "react-native";
2+
import { View, StatusBar, Image, Text } from "react-native";
33
import LoginScreen from "react-native-login-screen";
44

55
const backgroundImage = {
@@ -12,6 +12,38 @@ const App = () => {
1212
const [switchValue, setSwitchValue] = useState(false);
1313
const [spinnerVisibility, setSpinnerVisibility] = useState(false);
1414

15+
const renderLogo = () => (
16+
<View
17+
style={{
18+
bottom: 50,
19+
alignItems: "center",
20+
justifyContent: "center",
21+
}}
22+
>
23+
<Image
24+
resizeMode="contain"
25+
source={require("./assets/logo-example.png")}
26+
style={{ height: 250, width: 250 }}
27+
/>
28+
<Text
29+
style={{
30+
bottom: 32,
31+
color: "#fdfdfd",
32+
fontFamily: "Now-Bold",
33+
fontSize: 32,
34+
shadowRadius: 3,
35+
shadowOpacity: 0.7,
36+
shadowColor: "#757575",
37+
shadowOffset: {
38+
width: 0,
39+
height: 3,
40+
},
41+
}}
42+
>
43+
LOGO
44+
</Text>
45+
</View>
46+
);
1547
return (
1648
<View>
1749
<StatusBar barStyle="light-content" />
@@ -23,6 +55,7 @@ const App = () => {
2355
source={backgroundImage}
2456
spinnerEnable
2557
spinnerVisibility={spinnerVisibility}
58+
logoComponent={renderLogo()}
2659
labelTextStyle={{
2760
color: "#adadad",
2861
fontFamily: "Now-Bold",

example/assets/logo-example.png

823 KB
Loading

example/ios/Podfile.lock

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -298,8 +298,6 @@ PODS:
298298
- React-Core (= 0.63.2)
299299
- React-cxxreact (= 0.63.2)
300300
- React-jsi (= 0.63.2)
301-
- RNVectorIcons (7.1.0):
302-
- React
303301
- Yoga (1.14.0)
304302
- YogaKit (1.18.1):
305303
- Yoga (~> 1.14)
@@ -352,7 +350,6 @@ DEPENDENCIES:
352350
- React-RCTText (from `../node_modules/react-native/Libraries/Text`)
353351
- React-RCTVibration (from `../node_modules/react-native/Libraries/Vibration`)
354352
- ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`)
355-
- RNVectorIcons (from `../node_modules/react-native-vector-icons`)
356353
- Yoga (from `../node_modules/react-native/ReactCommon/yoga`)
357354

358355
SPEC REPOS:
@@ -423,8 +420,6 @@ EXTERNAL SOURCES:
423420
:path: "../node_modules/react-native/Libraries/Vibration"
424421
ReactCommon:
425422
:path: "../node_modules/react-native/ReactCommon"
426-
RNVectorIcons:
427-
:path: "../node_modules/react-native-vector-icons"
428423
Yoga:
429424
:path: "../node_modules/react-native/ReactCommon/yoga"
430425

@@ -466,10 +461,9 @@ SPEC CHECKSUMS:
466461
React-RCTText: 1b6773e776e4b33f90468c20fe3b16ca3e224bb8
467462
React-RCTVibration: 4d2e726957f4087449739b595f107c0d4b6c2d2d
468463
ReactCommon: a0a1edbebcac5e91338371b72ffc66aa822792ce
469-
RNVectorIcons: bc69e6a278b14842063605de32bec61f0b251a59
470464
Yoga: 7740b94929bbacbddda59bf115b5317e9a161598
471465
YogaKit: f782866e155069a2cca2517aafea43200b01fd5a
472466

473467
PODFILE CHECKSUM: 311cf87a4a33d759b7ec994ec3735e03d4ededbf
474468

475-
COCOAPODS: 1.9.3
469+
COCOAPODS: 1.10.0.rc.1

0 commit comments

Comments
 (0)