Git Product home page Git Product logo

Comments (8)

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

You can use prop buttonStyle in which you can pass your own style with backgroundColor: white to make it white.

from react-native-apple-authentication.

akhilmorya avatar akhilmorya commented on June 19, 2024 1

Ok @ankitchauhan-react-native will check and update here

from react-native-apple-authentication.

VikramSingh1994 avatar VikramSingh1994 commented on June 19, 2024 1

Hi All,
If you can resolve this issue,
check given code snippets and edit the methods according your UI:-

Go To -> node_module -> react-native-apple-authentication ->
Hint- (this used for custom apple button on dark theme otherwise apple reject app)

export const SignInWithAppleButton = ({buttonText = '', callBack, buttonStyle={borderRadius: 5, justifyContent: 'center', alignItems: 'center', backgroundColor: 'black'}, textStyle={ fontSize : 19, color: "black", textAlign: 'center', marginTop: 10, marginBottom: 10, marginHorizontal: 20 }}) => {
if(Platform.OS === 'ios') {
if(buttonText) {
return <TouchableOpacity style={buttonStyle} onPress={async () => {
await appleAuth(callBack);
}}
>
<Image
source={require('../../src/assets/other/LeftBlack.png')}
style={{height: 44, width: 44, resizeMode: 'contain',}}
/>

{buttonText}


} else {
return <RNSignInWithAppleButton style={buttonStyle} onPress={async () => {
await appleAuth(callBack);
}}
/>
}
} else {
return null
}
}

from react-native-apple-authentication.

ankitchauhan-react-native avatar ankitchauhan-react-native commented on June 19, 2024

I have passed backgroundColor: 'white' but still getting black button.
appleBtn: {
height: 44,
backgroundColor: 'white'
}
Please help.

from react-native-apple-authentication.

ankitchauhan-react-native avatar ankitchauhan-react-native commented on June 19, 2024

Ok @ankitchauhan-react-native will check and update here

any update???

from react-native-apple-authentication.

ankitchauhan-react-native avatar ankitchauhan-react-native commented on June 19, 2024

can you please suggest how can be log out from the apple sign-in without following the manual step?

from react-native-apple-authentication.

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

Hello @ankitchauhan-react-native have you checked this example:
https://github.com/SystangoTechnologies/react-native-apple-authentication/blob/master/example/App.js

I have tested it back and when I change the style:
appleBtn: { height: 44, width: 200, borderRadius: 5, justifyContent: 'center', alignItems: 'center', backgroundColor: 'black' }

to

appleBtn: { height: 44, width: 200, borderRadius: 5, justifyContent: 'center', alignItems: 'center', backgroundColor: 'white' }

Then it changes button background with white.

Please check if you have the latest RN version:

https://www.npmjs.com/package/react-native-apple-authentication -> 1.0.8

from react-native-apple-authentication.

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

I'm closing this PR. Please open it again if you find any issues here again. Hope the above answer will help.

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.