Skip to content

Commit c7f947f

Browse files
committed
docs(example, android): include logos in all example buttons
previously the continue buttons had logos, but sign in buttons did not added them everywhere for consistency Related #242
1 parent 196aac5 commit c7f947f

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

example/app.android.js

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,20 +168,56 @@ export default RootComponent = () => {
168168
buttonStyle={AppleButton.Style.WHITE}
169169
buttonType={AppleButton.Type.SIGN_IN}
170170
onPress={() => doAppleLogin()}
171+
leftView={(
172+
<Image
173+
style={{
174+
alignSelf: 'center',
175+
width: 14,
176+
height: 14,
177+
marginRight: 7,
178+
resizeMode: 'contain',
179+
}}
180+
source={appleLogoBlack}
181+
/>
182+
)}
171183
/>
172184
<AppleButton
173185
style={{ marginBottom: 10 }}
174186
cornerRadius={5}
175187
buttonStyle={AppleButton.Style.WHITE_OUTLINE}
176188
buttonType={AppleButton.Type.SIGN_IN}
177189
onPress={() => doAppleLogin()}
190+
leftView={(
191+
<Image
192+
style={{
193+
alignSelf: 'center',
194+
width: 14,
195+
height: 14,
196+
marginRight: 7,
197+
resizeMode: 'contain',
198+
}}
199+
source={appleLogoBlack}
200+
/>
201+
)}
178202
/>
179203
<AppleButton
180204
style={{ marginBottom: 10 }}
181205
cornerRadius={5}
182206
buttonStyle={AppleButton.Style.BLACK}
183207
buttonType={AppleButton.Type.SIGN_IN}
184208
onPress={() => doAppleLogin()}
209+
leftView={(
210+
<Image
211+
style={{
212+
alignSelf: 'center',
213+
width: 14,
214+
height: 14,
215+
marginRight: 7,
216+
resizeMode: 'contain',
217+
}}
218+
source={appleLogoWhite}
219+
/>
220+
)}
185221
/>
186222
</View>
187223
)}

0 commit comments

Comments
 (0)