Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting appropriate result. #1

Open
ronastlelobo opened this issue Nov 28, 2018 · 3 comments
Open

Getting appropriate result. #1

ronastlelobo opened this issue Nov 28, 2018 · 3 comments

Comments

@ronastlelobo
Copy link

I cloned your project which has React-Native version : 0.57.5.
I am getting the below result. Check if it fits your question.

screenshot_20181128-191255

@ronastlelobo
Copy link
Author

Replace this Code in your App.js file,

import React, { Component } from "react";
import { Platform, StyleSheet, Text, View, Image } from "react-native";

export default class App extends Component {
  render() {
    return (
      <View style={styles.container}>
        <Image
          source={require("./assets/ELHall1.png")}
          // resizeMethod="resize"
          resizeMode="contain"
          style={{ width: "100%", height: "98%" }}
        />
      </View>
    );
  }
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: "center"
    // alignItems: 'center',
    // backgroundColor: '#F5FCFF',
  },
  welcome: {
    fontSize: 20,
    textAlign: "center",
    margin: 10
  },
  instructions: {
    textAlign: "center",
    color: "#333333",
    marginBottom: 5
  }
});

@clytras
Copy link
Owner

clytras commented Nov 28, 2018

Please read my responses @ SO. That's not what I want to accomplish.

@mnlbox
Copy link

mnlbox commented Dec 3, 2018

@clytras I have same issue and also send response in facebook/react-native#21301.
Can you fix this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants