Comments (8)
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.
Ok @ankitchauhan-react-native will check and update here
from react-native-apple-authentication.
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.
I have passed backgroundColor: 'white' but still getting black button.
appleBtn: {
height: 44,
backgroundColor: 'white'
}
Please help.
from react-native-apple-authentication.
Ok @ankitchauhan-react-native will check and update here
any update???
from react-native-apple-authentication.
can you please suggest how can be log out from the apple sign-in without following the manual step?
from react-native-apple-authentication.
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.
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)
- [iOS] I got an error "Apple sign in only support iOS 13 or newer" HOT 1
- How to change the text of sign in button HOT 4
- identityToken is null HOT 2
- Border Radius HOT 1
- 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.