Commit d38333f0 authored by Laurent's avatar Laurent

Premiers pas

parent 4ed49ab2
import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
import { StyleSheet, Button, Text, View, TextInput } from 'react-native';
import * as Font from 'expo-font';
export default function App() {
return (
<View style={styles.container}>
<Text>Open up App.js to start working on your app!</Text>
class App extends React.Component {
state = {
fontLoaded: false,
async componentDidMount() {
await Font.loadAsync({
'Trebuchet MS': require('./assets/fonts/trebuc.ttf'),
this.setState({ fontLoaded: true });
render() {
let titre = "";
titre = <Text style={styles.h1} >Bienvenue sur CRS Mons App !</Text>;
titre = <Text >Bienvenue sur CRS Mons App !</Text>;
<View style={styles.container}>
<TextInput placeholder="Nom d'utilisateur"/>
<TextInput placeholder="Mot de passe"/>
<Button title='Se connecter'/>
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
justifyContent: 'center'
h1: {
paddingTop: 15,
fontFamily: 'Trebuchet MS',
fontSize: 20,
color: '#d7006e',
textAlign: 'center'
export default App;
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment