Skip to content

Commit

Permalink
add esling config
Browse files Browse the repository at this point in the history
Signed-off-by: Guilherme Banci <guibanci@gmail.com>
  • Loading branch information
gdeusdara committed Aug 30, 2021
1 parent 1833c83 commit e33aa48
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 16 deletions.
5 changes: 1 addition & 4 deletions src/app/Routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,7 @@ const Routes = () => {
component={Page1}
// options={{header: () => <Header />}}
/>
<Stack.Screen
name="Page2"
component={Page2}
/>
<Stack.Screen name="Page2" component={Page2} />
</Stack.Navigator>
</NavigationContainer>
</SafeAreaView>
Expand Down
12 changes: 6 additions & 6 deletions src/components/UI/index.js
Original file line number Diff line number Diff line change
@@ -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';
13 changes: 7 additions & 6 deletions src/pages/Page1/index.js
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -31,7 +32,7 @@ const Page1 = ({navigation}) => {
};

const onPress = async () => {
navigation.navigate('Page2')
navigation.navigate('Page2');
// dispatch(Actions.enableLoader());
// const params = {}
// try {
Expand Down

0 comments on commit e33aa48

Please sign in to comment.