mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-23 03:50:11 +08:00
Fix TicTacToe example layout
Summary: I noticed that after starting a new game the board is not correctly layouted:  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
This commit is contained in:
committed by
Facebook Github Bot
parent
47f18bdb17
commit
6e2595e8ee
@@ -158,7 +158,7 @@ class GameEndOverlay extends React.Component {
|
||||
var tie = board.tie();
|
||||
var winner = board.winner();
|
||||
if (!winner && !tie) {
|
||||
return <View />;
|
||||
return null;
|
||||
}
|
||||
|
||||
var message;
|
||||
|
||||
Reference in New Issue
Block a user