Comments (4)
I solved. but it is a little annoying.
you should change the nodemodule/react-native-apple-authentification/index.js
i changed like this ( i use korean )
import React from 'react';
import {TouchableOpacity, Text, StyleSheet,Dimensions} from 'react-native'
import { NativeModules, requireNativeComponent ,Platform } from 'react-native';
const { AppleAuthentication } = NativeModules;
// export const RNSignInWithAppleButton = requireNativeComponent('RNCSignInWithAppleButton');
export const SignInWithAppleButton = (buttonStyle, callBack) => {
if(Platform.OS === 'ios'){
return <TouchableOpacity style={styles.appleLoginButton} onPress={async () => {
await AppleAuthentication.requestAsync({
requestedScopes: [AppleAuthentication.Scope.FULL_NAME, AppleAuthentication.Scope.EMAIL],
}).then((response) => {
callBack(response) //Display response
}, (error) => {
callBack(error) //Display error
});
}}>
<Text style = {{ fontSize : 15, color: "white" }}>
애플계정으로 로그인하기
}
}
export default AppleAuthentication;
const styles = StyleSheet.create({
appleLoginButton:{
borderRadius : 4,
backgroundColor : "black",
width : Dimensions.get('window').width/1.1,
height : 60,
justifyContent : "center",
alignItems : "center",
marginBottom: "3%"
}
})
You can customizing the button by changing it to touchableopacity
but you should change it everytime when you remove the nodemodules or newly install it
from react-native-apple-authentication.
We are looking at it @mailtokun. Stay tuned
from react-native-apple-authentication.
We are looking at it @mailtokun. Stay tuned
Thanks. It's very important for non-English country.
from react-native-apple-authentication.
I have included the changes shared by @songjihyeok in the master branch in version 1.0.7. Now apple login button title could be changed. Closing this issue.
from react-native-apple-authentication.
Related Issues (17)
- [iOS] I got an error "Apple sign in only support iOS 13 or newer" HOT 1
- identityToken is null HOT 2
- Border Radius HOT 1
- How to get white style of apple button if background is dark or black. HOT 8
- Invariant Violation: requireNativeComponent: "RNCSignInWithAppleButton" was not found in the UI manager
- Empty callback After Login HOT 5
- How to implement buttonText HOT 2
- Not working on Simulator, causes Apple rejections HOT 1
- Got Error: Error Domain=com.apple.AuthenticationServices.AuthorizationError Code=1000 "(null)" HOT 5
- Error when click to sigin with Apple
- Response Apple Login Null Resssult {"authorizationCode": null, "authorizedScopes": [], "email": null, "fullName": null, "identityToken": null, "realUserStatus": 1, "state": null, "user": "000694.770e4595a7254085b9d3ce75c68b135b.0305"} HOT 3
- Issue running android after the react native update 0.70
- Scopes not working HOT 10
- RNSignInWithAppleButton was not found in UIManager. HOT 4
- apple login return null data HOT 2
- 大佬 demo 跑不起来啊 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-apple-authentication.