From 6e2595e8eee7a8ac30c3c0aa00b724f29b15e39a Mon Sep 17 00:00:00 2001 From: Timur Gibadullin Date: Mon, 9 Jan 2017 00:17:37 -0800 Subject: [PATCH] Fix TicTacToe example layout Summary: I noticed that after starting a new game the board is not correctly layouted: ![-08-2017 21-39-21](https://cloud.githubusercontent.com/assets/3778452/21752532/06afc648-d5eb-11e6-9f8a-ccdad00d3a6f.gif) Maybe this bug was introduced after the change of flex behaviour in 0.36. Just replacing empty view with null fixed it. **Test plan (required)** - launch the TicTacToe app - complete a round - press on new game a new board should be centred both vertically and horizontally Closes https://github.com/facebook/react-native/pull/11775 Differential Revision: D4392024 Pulled By: ericvicenti fbshipit-source-id: d2742d6ecafd786c38212adeb3c952f18a0e6f2b --- Examples/TicTacToe/TicTacToeApp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Examples/TicTacToe/TicTacToeApp.js b/Examples/TicTacToe/TicTacToeApp.js index 958052333..17d41a7e6 100755 --- a/Examples/TicTacToe/TicTacToeApp.js +++ b/Examples/TicTacToe/TicTacToeApp.js @@ -158,7 +158,7 @@ class GameEndOverlay extends React.Component { var tie = board.tie(); var winner = board.winner(); if (!winner && !tie) { - return ; + return null; } var message;