Skip to content

Commit 2f176dd

Browse files
author
Matthieu Napoli
committed
Inline unnecessary const
1 parent db18910 commit 2f176dd

File tree

4 files changed

+4
-12
lines changed

4 files changed

+4
-12
lines changed

App/Theme/ApplicationStyles.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@
44
* Use it to define generic component styles (e.g. the default text styles, default button styles...).
55
*/
66

7-
const ApplicationStyles = {
7+
export default {
88
screen: {
99
container: {
1010
flex: 1,
1111
},
1212
},
1313
}
14-
15-
export default ApplicationStyles

App/Theme/Colors.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,11 @@
55
* That allows to change them more easily later on.
66
*/
77

8-
const colors = {
8+
export default {
99
transparent: 'rgba(0,0,0,0)',
1010
// Example colors:
1111
text: '#212529',
1212
primary: '#007bff',
1313
success: '#28a745',
1414
error: '#dc3545',
1515
}
16-
17-
export default colors

App/Theme/Images.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
* Images should be stored in the `App/Images` directory and referenced using variables defined here.
33
*/
44

5-
const Images = {
5+
export default {
66
// logo: require('../Images/logo.png'),
77
}
8-
9-
export default Images

App/Theme/Metrics.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22
* This file contains metric values that are global to the application.
33
*/
44

5-
const metrics = {
5+
export default {
66
// Examples of metrics you can define:
77
// baseMargin: 10,
88
// largeMargin: 20,
99
// smallMargin: 5,
1010
}
11-
12-
export default metrics

0 commit comments

Comments
 (0)