Guest User

Untitled

a guest
Jun 26th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. _onpressbutton = async () => {
  2.  
  3. axios.post('apivalidacion', {
  4. username: this.state.user,
  5. password: this.state.pass
  6. }).then(function (response){
  7. this.props.navigation.navigate('Main');
  8. }).catch(function(error){
  9. console.log(error);
  10. });
  11. };
  12.  
  13. import React from 'react';
  14. import axios from 'axios';
  15. import {
  16. Alert,
  17. StyleSheet,
  18. View,
  19. AppRegistry,
  20. ImageBackground,
  21.  
  22. } from 'react-native';
  23. import { TextField } from 'react-native-material-textfield';
  24. import { Button , Text} from 'native-base'
Advertisement
Add Comment
Please, Sign In to add comment