Skip to content Skip to sidebar Skip to footer

Customise Aws Amplify Ui?

Believe I may be going about this the wrong way and would greatly appreciate guidance on the issue. I’m using React-Native and AWS Amplify for authentication. What I would like t

Solution 1:

There may be a bug in the withAuthenticator HOC related to theme; however, you can directly use the component like so:


const MySectionHeaderText = Object.assign({}, AmplifyTheme.sectionHeaderText, { 'fontSize': 10 });
const MyTheme = Object.assign({}, AmplifyTheme, { sectionHeaderText: MySectionHeaderText });

class App extends React.Component {
  render() {
    return (
        <Authenticator theme={MyTheme}></Authenticator>
    );
  }
}

Post a Comment for "Customise Aws Amplify Ui?"