How to use aws-amplify-react-native - 9 common examples

To help you get started, we’ve selected a few aws-amplify-react-native examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github yhenni1989 / Plush / App.js View on Github external
render() {
    return (
      
    )
  }
}

// Wrap the App with Amplify HOC. Set to true if you want to render sing out button
const AppWithAuth = withAuthenticator(App, false)

export default () => (
  
    
      
    
  
)
github yhenni1989 / Zopher / App.js View on Github external
)
  }
}

export default withAuthenticator(
  App, {
  // Render a sign out button once logged in
  includeGreetings: true}
)

const styles = StyleSheet.create({
  container: {
    flex: 0.10,
    flexDirection: 'row',
    alignItems: 'center',
    justifyContent: 'flex-start',
    borderBottomWidth: 1,
    borderBottomColor: '#a8abaf',
  },
  textStyle: {
    fontSize: 18,
github allenmichael / petunia / petunia-mobile / App.js View on Github external
console.warn(error);
  };

  _handleFinishLoading = () => {
    this.setState({ isLoadingComplete: true });
  };
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: '#fff',
  },
});

export default withAuthenticator(App, true);
github dabit3 / conference-app-in-a-box / src / App.js View on Github external
}

const App = createAppContainer(TabNavWithProps)

const theme = {
  ...AmplifyTheme,
  button: {
    ...AmplifyTheme.button,
    backgroundColor: colors.primaryLight
  },
  sectionFooterLink: {
    ...AmplifyTheme.sectionFooterLink,
    color: colors.primaryLight
  },
  buttonDisabled: {
    ...AmplifyTheme.buttonDisabled,
    backgroundColor: colors.primaryOpaque(0.6)
  }
}

class AppWithAuth extends React.Component {
  state = {
    signedIn: true
  }
  async componentDidMount() {
    try {
      await Auth.currentAuthenticatedUser()
      this.setState({ signedIn: true })
    } catch (err) { console.log('user not signed in') }
    Hub.listen('auth', (data) => {
      const { payload: { event } } = data
      if (event === 'signIn') {
github dabit3 / conference-app-in-a-box / src / App.js View on Github external
render() {
    const AppComponent = withAuthenticator(App, null, null, null, theme)
    return (
      
    )
  }
}
github dabit3 / conference-app-in-a-box / src / App.js View on Github external
class TabNavWithProps extends React.Component {
  static router = TabNavigator.router
  render() {
    return(
      
    )
  }
}

const App = createAppContainer(TabNavWithProps)

const theme = {
  ...AmplifyTheme,
  button: {
    ...AmplifyTheme.button,
    backgroundColor: colors.primaryLight
  },
  sectionFooterLink: {
    ...AmplifyTheme.sectionFooterLink,
    color: colors.primaryLight
  },
  buttonDisabled: {
    ...AmplifyTheme.buttonDisabled,
    backgroundColor: colors.primaryOpaque(0.6)
  }
}

class AppWithAuth extends React.Component {
  state = {
    signedIn: true
  }
github dabit3 / conference-app-in-a-box / src / App.js View on Github external
return(
      
    )
  }
}

const App = createAppContainer(TabNavWithProps)

const theme = {
  ...AmplifyTheme,
  button: {
    ...AmplifyTheme.button,
    backgroundColor: colors.primaryLight
  },
  sectionFooterLink: {
    ...AmplifyTheme.sectionFooterLink,
    color: colors.primaryLight
  },
  buttonDisabled: {
    ...AmplifyTheme.buttonDisabled,
    backgroundColor: colors.primaryOpaque(0.6)
  }
}

class AppWithAuth extends React.Component {
  state = {
    signedIn: true
  }
  async componentDidMount() {
    try {
      await Auth.currentAuthenticatedUser()
      this.setState({ signedIn: true })

aws-amplify-react-native

AWS Amplify is a JavaScript library for Frontend and mobile developers building cloud-enabled applications.

Apache-2.0
Latest version published 12 months ago

Package Health Score

86 / 100
Full package analysis