diff --git a/src/app/Routes.js b/src/app/Routes.js index 4179a12..f2ffc40 100644 --- a/src/app/Routes.js +++ b/src/app/Routes.js @@ -41,10 +41,7 @@ const Routes = () => { component={Page1} // options={{header: () =>
}} /> - + diff --git a/src/components/UI/index.js b/src/components/UI/index.js index 0110370..fc7a23b 100644 --- a/src/components/UI/index.js +++ b/src/components/UI/index.js @@ -1,6 +1,6 @@ -export {default as Btn} from './Btn' -export {default as Input} from './Input' -export {default as ScrollView} from './ScrollView' -export {default as Text} from './Text' -export {default as View} from './View' -export {default as Touchable} from './Touchable' +export {default as Btn} from './Btn'; +export {default as Input} from './Input'; +export {default as ScrollView} from './ScrollView'; +export {default as Text} from './Text'; +export {default as View} from './View'; +export {default as Touchable} from './Touchable'; diff --git a/src/pages/Page1/index.js b/src/pages/Page1/index.js index e3102de..991bea0 100644 --- a/src/pages/Page1/index.js +++ b/src/pages/Page1/index.js @@ -1,20 +1,21 @@ import React, {useState} from 'react'; -import {Alert, Platform} from 'react-native'; import ScrollView from 'components/UI/ScrollView'; import Input from 'components/UI/Input'; import required from 'validators/required'; import phoneValidator from 'validators/phone'; import phoneMask from 'masks/phoneMask'; import Btn from 'components/UI/Btn'; -import api from 'services/api'; import Text from 'components/UI/Text'; -import {useDispatch} from 'react-redux'; -import * as Actions from 'store/actions'; import theme from 'theme/theme'; import {Container} from './styles'; +// import {Alert} from 'react-native'; +// import api from 'services/api'; +// import {useDispatch} from 'react-redux'; +// import * as Actions from 'store/actions'; + const Page1 = ({navigation}) => { - const dispatch = useDispatch(); + // const dispatch = useDispatch(); const [phone, setPhone] = useState({ isValid: false, @@ -31,7 +32,7 @@ const Page1 = ({navigation}) => { }; const onPress = async () => { - navigation.navigate('Page2') + navigation.navigate('Page2'); // dispatch(Actions.enableLoader()); // const params = {} // try {