diff --git a/packages/aws-amplify-react-native/src/Auth/index.tsx b/packages/aws-amplify-react-native/src/Auth/index.tsx index 0d28f4769a6..f7b7a520dc1 100644 --- a/packages/aws-amplify-react-native/src/Auth/index.tsx +++ b/packages/aws-amplify-react-native/src/Auth/index.tsx @@ -58,7 +58,7 @@ interface IWithAuthenticatorState { export function withAuthenticator( Comp: React.ComponentType, - includeGreetings = false, + includeGreetings: boolean | { [index: string]: any } = false, authenticatorComponents = [], federated = null, theme: AmplifyThemeType = null, @@ -80,6 +80,9 @@ export function withAuthenticator( this.authConfig = {}; if (typeof includeGreetings === 'object' && includeGreetings !== null) { + if (includeGreetings.theme) { + theme = includeGreetings.theme; + } this.authConfig = Object.assign(this.authConfig, includeGreetings); } else { this.authConfig = {