react native interview technical

Solutions on MaxInterview for react native interview technical by the best coders in the world

showing results for - "react native interview technical"
Liana
05 Jan 2020
1import React, { Component } from 'react';  
2import {  
3  Platform,  
4  StyleSheet,  
5  Image,  
6  Text,  
7  View  
8} from 'react-native';  
9  
10export default class App extends Component<{}> {  
11  render() {  
12    let imagePath = { uri: 'https://facebook.github.io/react-native/img/header_logo.png'};  
13    return (  
14        <View style={styles.container}>  
15          <Text style={styles.welcome}>Welcome to React Native!</Text>  
16          <Image source={imagePath} style={{width: 250, height: 250}} />  
17        </View>  
18    );  
19  }  
20}  
21  
22const styles = StyleSheet.create({  
23  container: {  
24    flex: 1,  
25    justifyContent: 'center',  
26    alignItems: 'center',  
27    backgroundColor: '#a7a6a9',  
28  },  
29  welcome: {  
30    fontSize: 30,  
31    textAlign: 'center',  
32    margin: 20,  
33  }  
34});