-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
⚡ Creating the initial view and configuring the project structure.
- Loading branch information
Showing
34 changed files
with
319 additions
and
174 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
13 changes: 3 additions & 10 deletions
13
android/app/src/main/java/com/lastfmlevelone/MainActivity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,8 @@ | ||
package com.lastfmlevelone; | ||
|
||
import com.facebook.react.ReactActivity; | ||
import com.reactnativenavigation.NavigationActivity; | ||
|
||
public class MainActivity extends ReactActivity { | ||
public class MainActivity extends NavigationActivity { | ||
|
||
/** | ||
* Returns the name of the main component registered from JavaScript. This is used to schedule | ||
* rendering of the component. | ||
*/ | ||
@Override | ||
protected String getMainComponentName() { | ||
return "LastFMLevelOne"; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
rootProject.name = 'LastFMLevelOne' | ||
include ':react-native-vector-icons' | ||
project(':react-native-vector-icons').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-vector-icons/android') | ||
apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings) | ||
include ':app' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import {registerScreens} from './core/navigation'; | ||
import {Navigation} from 'react-native-navigation'; | ||
|
||
registerScreens(); | ||
|
||
Navigation.events().registerAppLaunchedListener(async () => { | ||
Navigation.setRoot({ | ||
root: { | ||
stack: { | ||
children: [ | ||
{ | ||
component: { | ||
name: 'HomeScreen', | ||
}, | ||
}, | ||
], | ||
}, | ||
}, | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import React from 'react'; | ||
import {View} from 'react-native'; | ||
import {Text} from 'react-native-elements'; | ||
|
||
const ArtistScreen: React.FC = () => { | ||
return ( | ||
<View> | ||
<Text h3>ArtistScreen works!</Text> | ||
</View> | ||
); | ||
}; | ||
|
||
export default ArtistScreen; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import React from 'react'; | ||
import {View} from 'react-native'; | ||
import {Text} from 'react-native-elements'; | ||
import HomeStyles from './styles'; | ||
|
||
const HomeScreen: React.FC = () => { | ||
return ( | ||
<View style={HomeStyles.mainContainer}> | ||
<Text h3>Bienvenido!</Text> | ||
<Text style={HomeStyles.center}> | ||
<Text>Esta app fue desarrollada por {'\n'} </Text> | ||
<Text style={HomeStyles.bold}>Rubén Carrascal </Text> | ||
<Text>para </Text> | ||
<Text style={HomeStyles.bold}>valid.com</Text> | ||
</Text> | ||
</View> | ||
); | ||
}; | ||
|
||
export default HomeScreen; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import {StyleSheet} from 'react-native'; | ||
|
||
const HomeStyles = StyleSheet.create({ | ||
mainContainer: {flex: 1, justifyContent: 'center', alignItems: 'center'}, | ||
bold: {fontWeight: 'bold'}, | ||
center: {textAlign: 'center'}, | ||
}); | ||
|
||
export default HomeStyles; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export default { | ||
api: 'http://ws.audioscrobbler.com/2.0', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import {Navigation} from 'react-native-navigation'; | ||
import HomeScreen from '../../components/Home/HomeScreen'; | ||
|
||
export function registerScreens() { | ||
Navigation.registerComponent('HomeScreen', () => HomeScreen); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,5 @@ | ||
/** | ||
* @format | ||
*/ | ||
|
||
import {AppRegistry} from 'react-native'; | ||
import App from './App'; | ||
import App from './app/App'; | ||
import {name as appName} from './app.json'; | ||
|
||
AppRegistry.registerComponent(appName, () => App); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.