Skip to content

Commit 783dff7

Browse files
author
Matthieu Napoli
committed
Merge branch 'app-namespace' into 'master'
Utilisation d'imports avec le namespace `App` plutôt que des imports relatifs See merge request tcm-projects/react-native-boilerplate!3
2 parents 53397b5 + f4de674 commit 783dff7

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

App/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { Component } from 'react'
2-
import {HomeScreen} from "./Containers/HomeScreen";
2+
import {HomeScreen} from "App/Containers/HomeScreen";
33

44
export default class App extends Component {
55
render() {

App/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"name": "App"
3+
}

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import { AppRegistry } from 'react-native'
2-
import App from './App/App'
2+
import App from 'App/App'
33

44
AppRegistry.registerComponent('Boilerplate', () => App)

0 commit comments

Comments
 (0)