-
Notifications
You must be signed in to change notification settings - Fork 1
/
exemple.js
61 lines (53 loc) · 1.22 KB
/
exemple.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
"use strict";
import React, { Component } from 'react';
import {
AppRegistry,
Image,
/*****/
ListView,
View
} from 'react-native';
var OtherClass = require('./OtherClass');
var Icon = require('react-native-vector-icons/FontAwesome');
class Exemple extends Component {
constructor(props)
{
super(props);
this.state = {
string : "toto",
integer : 0,
bool : false,
};
}
render()
{
return(
<View>
<Text style={styles.text}>Hello World !</Text>
<Image
source={{uri: movie.posters.thumbnail}}
style={styles.thumbnail}
onPress={() => this._changeString()}/>
</View>
);
}
_changeString()
{
this.state.string = "titi";
}
}
var styles = StyleSheet.create({
text: {
fontSize: 20,
marginBottom: 8,
marginLeft: 20,
fontFamily:'Bariol'
},
thumbnail: {
width: 53,
height: 81,
borderRadius: 10,
}
});
AppRegistry.registerComponent('Exemple', () => Exemple);
module.exports = Exemple;