1.0.2 • Published 2 years ago
react-native-apple-login-ql v1.0.2
REACT-NATIVE-APPLE-LOGIN-QL
Dependencies needed
Use this command to install the npm packages listed below
- @invertase/react-native-apple-authentication
- @react-native-firebase/app
- @react-native-firebase/auth
Steps for React Native Apple login in IOS
- Create firebase app for IOS
- Add following lines in Podfile located inside ios folder
- $RNFirebaseAsStaticFramewor = true at top of the file
- use_frameworks! :linkage => :static at top of the file
- Add following lines in AppDelegate.mm file located inside ios/project_name folder
- #import <Firebase.h> at top of the file
- FIRApp configure; at top of the didFinishLaunchingWithOptions function
- After completing above steps do pod install inside ios folder
- Add GoogleService-Info.plist inside ./ios/project_name using xcode by right clicking on project name folder then add file.
- Run app using 'npm run android for Android and 'npm run ios for IOS.
Usage
Install Dependeny
npm i react-native-apple-login-ql yarn add react-native-apple-login-ql
Import the package
import AppleSignIn from 'react-native-apple-login-ql';
Then call the component
<AppleSignIn
title="Apple Sign In"
btnColor="#fff"
titleColor="#000"
fontSize={16}
rippleColor="#dcdcdc"
/>
To customize the button component
<AppleSignIn
title="Apple Sign In"
btnColor="#fff"
titleColor="#000"
fontSize={16}
rippleColor="#dcdcdc"
btnComponent={
<View style={styles.btnContainer}>
<Text style={{fontSize: 16, color: "#000"}}>Apple Sign In</Text>
</View>
}
/>
For more information look into github
https://ankitj1996@bitbucket.org/sunychoudhary/auth-apple-rn.git