Skip to content

Commit

Permalink
Add support for styling greeting message (aws-amplify#3919)
Browse files Browse the repository at this point in the history
This small change makes it possible to style the text in the Greeting component
  • Loading branch information
kkemple authored and Ashish-Nanda committed Sep 3, 2019
1 parent 50f697b commit 47568fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/aws-amplify-react-native/src/Auth/Greetings.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export default class Greetings extends AuthPiece {

const content = signedIn ? (
<View style={theme.navBar}>
<Text>{message}</Text>
<Text style={theme.greetingMessage}>{message}</Text>
<AmplifyButton
theme={theme}
text={I18n.get('Sign Out')}
Expand All @@ -83,7 +83,7 @@ export default class Greetings extends AuthPiece {
/>
</View>
) : (
<Text>{message}</Text>
<Text style={theme.greetingMessage}>{message}</Text>
);

return content;
Expand Down

0 comments on commit 47568fd

Please sign in to comment.