-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
72 lines (70 loc) · 2.62 KB
/
App.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
62
63
64
65
66
67
68
69
70
71
72
import React from 'react';
import { StyleSheet, Text, ScrollView, View, Image, Button, Alert } from 'react-native';
import { Greeting } from './Greeting';
import { Blink } from './Blink';
import { styles } from './Styles';
import { CookingTranslator } from './CookingTranslator';
import { AlertButton } from './AlertButton';
import { Touchables } from './Touchables';
export default class App extends React.Component {
render() {
let pic = {
uri: 'https://upload.wikimedia.org/wikipedia/commons/d/de/Bananavarieties.jpg'
};
// non scrolling view
// return (
// <View style={styles.container}>
// <Greeting name='Nana' />
// <Image source={pic} style={{width:193, height:110}}/>
// <Blink text='I love to blink' style={styles.red}/>
// <View style={styles.containerBlue}></View>
// <CookingTranslator
// viewStyle={styles.cookingTranslatorView}
// inputOrgStyle={styles.cookingTranslatorOrgText}
// translateStyle={styles.cookingTranslatorTranslate}></CookingTranslator>
// <AlertButton
// container={styles.container}
// buttonContainer={styles.alertButtonContainer1}
// alternativeLayoutButotnContainer={styles.alertButtonContainer2}
// buttonStyle={styles.alertButton}>
// </AlertButton>
// <Touchables
// container={styles.touchableContainer}
// button={styles.touchableButton2}
// buttonText={styles.touchableText}>
// </Touchables>
// </View>
// );
return (
<ScrollView>
<Greeting name='Nana' />
<Image source={pic} style={{width:193, height:110}}/>
<Blink text='I love to blink' style={styles.red}/>
<View style={styles.containerBlue}></View>
<CookingTranslator
viewStyle={styles.cookingTranslatorView}
inputOrgStyle={styles.cookingTranslatorOrgText}
translateStyle={styles.cookingTranslatorTranslate}></CookingTranslator>
<AlertButton
container={styles.container}
buttonContainer={styles.alertButtonContainer1}
alternativeLayoutButotnContainer={styles.alertButtonContainer2}
buttonStyle={styles.alertButton}>
</AlertButton>
<Touchables
container={styles.touchableContainer}
button={styles.touchableButton2}
buttonText={styles.touchableText}>
</Touchables>
</ScrollView>
);
}
}
// const styles = StyleSheet.create({
// container: {
// flex: 1,
// backgroundColor: '#fff',
// alignItems: 'center',
// justifyContent: 'center',
// },
// });