Skip to content

Commit

Permalink
Add code comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthieu Napoli committed Sep 25, 2018
1 parent ce6ccd8 commit abaf8bb
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 0 deletions.
7 changes: 7 additions & 0 deletions App/Containers/Example/ExampleScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ import ExampleActions from 'App/Stores/Example/Actions'
import { isHot } from 'App/Stores/Example/Selectors'
import Style from './ExampleScreenStyle'

/**
* This is an example of a container component.
*
* This screen displays a little help message and shows the weather temperature.
* Feel free to remove it.
*/

const instructions = Platform.select({
ios: 'Press Cmd+R to reload,\nCmd+D or shake for dev menu.',
android: 'Double tap R on your keyboard to reload,\nShake or press menu button for dev menu.',
Expand Down
2 changes: 2 additions & 0 deletions App/Containers/Root/RootScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ const AppNav = createStackNavigator(
// Create the application routes here (the key is the route name, the value is the target screen)
// See https://reactnavigation.org/docs/en/stack-navigator.html#routeconfigs
SplashScreen: SplashScreen,
// The main application screen is our "ExampleScreen". Feel free to replace it with your
// own screen and remove the example.
MainScreen: ExampleScreen,
},
{
Expand Down
1 change: 1 addition & 0 deletions App/Containers/SplashScreen/SplashScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export default class SplashScreen extends React.Component {
return (
<View style={styles.container}>
<View style={styles.logo}>
{/* You will probably want to insert your logo here */}
<Text>LOGO</Text>
</View>
</View>
Expand Down
1 change: 1 addition & 0 deletions App/Sagas/ExampleSaga.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { WeatherService } from 'App/Services/WeatherService'
* A saga can contain multiple functions.
*
* This example saga contains only one to fetch the weather temperature.
* Feel free to remove it.
*/
export function* fetchTemperature() {
// Dispatch a redux action using `put()`
Expand Down
6 changes: 6 additions & 0 deletions App/Services/WeatherService.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import { create } from 'apisauce'
import { Config } from 'App/Config'

/**
* This is an example of a service that connects to a 3rd party API.
*
* Feel free to remove this example from your application.
*/

const weatherApiClient = create({
/**
* Import the config from the App/Config/index.js file
Expand Down
1 change: 1 addition & 0 deletions App/Stores/Startup/Actions.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { createActions } from 'reduxsauce'

const { Types, Creators } = createActions({
// This action is triggered when the application starts
startup: null,
})

Expand Down

0 comments on commit abaf8bb

Please sign in to comment.