Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions frontend-challenge/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Learn more https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files

# dependencies
node_modules/

# Expo
.expo/
dist/
web-build/

# Native
*.orig.*
*.jks
*.p8
*.p12
*.key
*.mobileprovision
*.cer

# Metro
.metro-health-check*

# debug
npm-debug.*
yarn-debug.*
yarn-error.*

# macOS
.DS_Store
*.pem

# local env files
.env*.local

# typescript
*.tsbuildinfo

48 changes: 48 additions & 0 deletions frontend-challenge/App.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
import React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
import { StatusBar } from 'expo-status-bar';
import CourtsListScreen from './src/screens/CourtsListScreen';
import CourtDetailScreen from './src/screens/CourtDetailScreen';

const Stack = createStackNavigator();

export default function App() {
return (
<>
<NavigationContainer>
<Stack.Navigator
initialRouteName="CourtsList"
screenOptions={{
headerStyle: {
backgroundColor: '#10B981',
elevation: 0,
shadowOpacity: 0,
borderBottomWidth: 0,
},
headerTintColor: '#fff',
headerTitleStyle: {
fontWeight: '700',
fontSize: 18,
letterSpacing: 0.5,
},
headerShadowVisible: false,
}}
>
<Stack.Screen
name="CourtsList"
component={CourtsListScreen}
options={{ headerShown: false }}
/>
<Stack.Screen
name="CourtDetail"
component={CourtDetailScreen}
options={{ headerShown: false }}
/>
</Stack.Navigator>
</NavigationContainer>
<StatusBar style="light" />
</>
);
}

31 changes: 31 additions & 0 deletions frontend-challenge/app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"expo": {
"name": "Tennis Court Reviews",
"slug": "tennis-court-reviews",
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/icon.png",
"userInterfaceStyle": "light",
"splash": {
"image": "./assets/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"assetBundlePatterns": [
"**/*"
],
"ios": {
"supportsTablet": true
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#ffffff"
}
},
"web": {
"favicon": "./assets/favicon.png"
}
}
}

7 changes: 7 additions & 0 deletions frontend-challenge/babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = function(api) {
api.cache(true);
return {
presets: ['babel-preset-expo'],
};
};

Loading