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

[TicTacToe] Fix missing image styles for TicTacToe example #1122

Closed
wants to merge 1 commit into from

Conversation

rustyconover
Copy link
Contributor

Without a width or height set for the X or O image they don't appear, fix this problem by adding styles with width and height specified.

Without a width or height set for the X or O image they don't
appear, fix this problem by adding styles with width and height
specified.
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 3, 2015
@nicklockwood
Copy link
Contributor

@frantic should this be using the require(image!xxx) syntax for images instead? That way, we get the size set automatically, right?

@rustyconover
Copy link
Contributor Author

Isn't that only for Xcode bundled images?

@nicklockwood
Copy link
Contributor

Oh right, these are remote images. Sorry, then yes, this is fine.

@a2
Copy link
Contributor

a2 commented May 24, 2015

We should probably stop using these remote images. 😆

@brentvatne brentvatne changed the title Fix missing image styles for TicTacToe example [TicTacToe] Fix missing image styles for TicTacToe example Jun 1, 2015
@brentvatne
Copy link
Collaborator

@rustyconover - could you update this PR to load the images from Images.xcassets instead?

@sahrens
Copy link
Contributor

sahrens commented Jun 11, 2015

FYI: we're deprecated the automatic style from require(image!... magic so please don't use it going forward ;)

@sahrens
Copy link
Contributor

sahrens commented Jun 11, 2015

@facebook-github-bot import

@sahrens sahrens self-assigned this Jun 11, 2015
@facebook-github-bot
Copy link
Contributor

Thanks for importing. If you are an FB employee go to https://our.intern.facebook.com/intern/opensource/github/pull_request/691320904330225/int_phab to review.

sahrens pushed a commit to sahrens/react-native that referenced this pull request Jun 12, 2015
Summary:
Without a width or height set for the X or O image they don't appear, fix this problem by adding styles with width and height specified.
Closes facebook#1122
Github Author: Rusty Conover <[email protected]>

Test Plan: Imported from GitHub, without a `Test Plan:` line.
@sahrens sahrens closed this in 21a6418 Jun 12, 2015
mganandraj pushed a commit to mganandraj/react-native that referenced this pull request May 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants