diff --git a/.eslintrc.js b/.eslintrc.js index 2b7ae7c..6097b22 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,10 +1,10 @@ module.exports = { root: true, extends: [ + "@react-native", "eslint:recommended", "plugin:react/recommended", "plugin:@typescript-eslint/recommended", - "@react-native-community", "prettier", ], ignorePatterns: [ diff --git a/example/App.tsx b/example/App.tsx index c894880..a034686 100644 --- a/example/App.tsx +++ b/example/App.tsx @@ -1,7 +1,6 @@ import React from 'react'; import {View, StatusBar, UIManager, Platform} from 'react-native'; -// import LoginScreen from 'react-native-login-screen'; -import LoginScreen from './lib/LoginScreen'; +import LoginScreen from 'react-native-login-screen'; import TextInput from 'react-native-text-input-interactive'; if ( diff --git a/example/lib/LoginScreen.style.ts b/example/lib/LoginScreen.style.ts deleted file mode 100644 index 232224c..0000000 --- a/example/lib/LoginScreen.style.ts +++ /dev/null @@ -1,183 +0,0 @@ -import { - ViewStyle, - ImageStyle, - Dimensions, - StyleSheet, - TextStyle, -} from 'react-native'; -const {width: ScreenWidth} = Dimensions.get('screen'); - -interface Style { - container: ViewStyle; - logoImageStyle: ImageStyle; - textInputContainer: ViewStyle; - passwordTextInputContainer: ViewStyle; - loginButtonStyle: ViewStyle; - loginTextStyle: TextStyle; - signupStyle: ViewStyle; - signupTextStyle: TextStyle; - dividerStyle: ViewStyle; - socialLoginContainer: ViewStyle; - facebookSocialButtonTextStyle: TextStyle; - twitterSocialButtonTextStyle: TextStyle; - discordSocialButtonTextStyle: TextStyle; - socialButtonStyle: ViewStyle; - eyeIconContainer: ViewStyle; - eyeIcon: ImageStyle; - shakeText: TextStyle; - emailTextInputContainer: ViewStyle; - emailTooltipContainer: ViewStyle; - emailTooltipTextStyle: TextStyle; - emailTooltipRedTextStyle: TextStyle; - emailTooltipContentStyle: ViewStyle; - emailTooltipBackgroundStyle: ViewStyle; - passwordTooltipStyle: ViewStyle; - passwordTooltipContainer: ViewStyle; - passwordTooltipContentStyle: ViewStyle; - passwordTooltipTextStyle: TextStyle; - passwordTooltipRedTextStyle: TextStyle; - passwordTooltipBackgroundStyle: ViewStyle; -} - -export default StyleSheet.create