Git Product home page Git Product logo

Comments (4)

songjihyeok avatar songjihyeok commented on June 19, 2024 2

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" }}>
애플계정으로 로그인하기

}else{ return null

}

}

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

스크린샷 2020-04-08 오후 7 30 04

from react-native-apple-authentication.

amourya-systango avatar amourya-systango commented on June 19, 2024

We are looking at it @mailtokun. Stay tuned

from react-native-apple-authentication.

mailtokun avatar mailtokun commented on June 19, 2024

We are looking at it @mailtokun. Stay tuned

Thanks. It's very important for non-English country.

from react-native-apple-authentication.

amourya-systango avatar amourya-systango commented on June 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.