Fixed assertion caused by invalid layout of hidden Yoga nodes
Fixed assertion caused by invalid layout of hidden Yoga nodes

Summary:
That's interesting!
If we apply `display: none;` style to some node, Yoga will stop calculation layout for this subtree (which is reasonable).
So, from RN perspective we have to stop applying layout for hidden subtree because it is meaningless and causes another errors.

Note: We do actually not support `display: none;` yet. It stops computing layout, but it does not hide the views!

Reviewed By: javache

Differential Revision: D5168651

fbshipit-source-id: 29a9385c76a0f9d637285fc0d268ccc39879ca0a

cdlewis/react-native,hammerandchisel/react-native,farazs/react-native,cpunion/react-native,mironiasty/react-native,exponentjs/react-native,Bhullnatik/react-native,rickbeerendonk/react-native,myntra/react-native,jevakallio/react-native,facebook/react-native,formatlos/react-native,doochik/react-native,hoangpham95/react-native,cpunion/react-native,hammerandchisel/react-native,formatlos/react-native,kesha-antonov/react-native,dikaiosune/react-native,hammerandchisel/react-native,javache/react-native,forcedotcom/react-native,facebook/react-native,cdlewis/react-native,pandiaraj44/react-native,brentvatne/react-native,dikaiosune/react-native,forcedotcom/react-native,rickbeerendonk/react-native,myntra/react-native,mironiasty/react-native,forcedotcom/react-native,forcedotcom/react-native,kesha-antonov/react-native,javache/react-native,ptmt/react-native-macos,mironiasty/react-native,kesha-antonov/react-native,pandiaraj44/react-native,jevakallio/react-native,ptmt/react-native-macos,farazs/react-native,Bhullnatik/react-native,makadaw/react-native,thotegowda/react-native,brentvatne/react-native,jevakallio/react-native,kesha-antonov/react-native,mironiasty/react-native,negativetwelve/react-native,javache/react-native,cpunion/react-native,janicduplessis/react-native,makadaw/react-native,Bhullnatik/react-native,arthuralee/react-native,cdlewis/react-native,facebook/react-native,cdlewis/react-native,hoastoolshop/react-native,janicduplessis/react-native,ptmt/react-native-macos,doochik/react-native,makadaw/react-native,arthuralee/react-native,doochik/react-native,exponentjs/react-native,cpunion/react-native,hoangpham95/react-native,brentvatne/react-native,exponentjs/react-native,exponentjs/react-native,myntra/react-native,negativetwelve/react-native,cpunion/react-native,exponentjs/react-native,negativetwelve/react-native,exponentjs/react-native,doochik/react-native,jevakallio/react-native,rickbeerendonk/react-native,doochik/react-native,pandiaraj44/react-native,arthuralee/react-native,arthuralee/react-native,mironiasty/react-native,javache/react-native,formatlos/react-native,formatlos/react-native,hammerandchisel/react-native,hammerandchisel/react-native,kesha-antonov/react-native,pandiaraj44/react-native,dikaiosune/react-native,rickbeerendonk/react-native,brentvatne/react-native,mironiasty/react-native,janicduplessis/react-native,negativetwelve/react-native,Bhullnatik/react-native,hoastoolshop/react-native,facebook/react-native,mironiasty/react-native,hoastoolshop/react-native,farazs/react-native,jevakallio/react-native,myntra/react-native,jevakallio/react-native,hoangpham95/react-native,facebook/react-native,frantic/react-native,hoangpham95/react-native,exponent/react-native,farazs/react-native,pandiaraj44/react-native,negativetwelve/react-native,forcedotcom/react-native,thotegowda/react-native,ptmt/react-native-macos,dikaiosune/react-native,makadaw/react-native,farazs/react-native,makadaw/react-native,negativetwelve/react-native,Bhullnatik/react-native,kesha-antonov/react-native,hammerandchisel/react-native,rickbeerendonk/react-native,janicduplessis/react-native,janicduplessis/react-native,hoastoolshop/react-native,cdlewis/react-native,thotegowda/react-native,Bhullnatik/react-native,myntra/react-native,formatlos/react-native,negativetwelve/react-native,frantic/react-native,makadaw/react-native,hoangpham95/react-native,cdlewis/react-native,thotegowda/react-native,rickbeerendonk/react-native,brentvatne/react-native,forcedotcom/react-native,hoangpham95/react-native,brentvatne/react-native,cpunion/react-native,frantic/react-native,mironiasty/react-native,farazs/react-native,farazs/react-native,frantic/react-native,myntra/react-native,facebook/react-native,cdlewis/react-native,dikaiosune/react-native,doochik/react-native,pandiaraj44/react-native,doochik/react-native,exponent/react-native,facebook/react-native,exponentjs/react-native,formatlos/react-native,kesha-antonov/react-native,brentvatne/react-native,exponentjs/react-native,cdlewis/react-native,kesha-antonov/react-native,cpunion/react-native,rickbeerendonk/react-native,pandiaraj44/react-native,formatlos/react-native,formatlos/react-native,cdlewis/react-native,Bhullnatik/react-native,hoastoolshop/react-native,hammerandchisel/react-native,formatlos/react-native,rickbeerendonk/react-native,javache/react-native,javache/react-native,brentvatne/react-native,jevakallio/react-native,facebook/react-native,janicduplessis/react-native,arthuralee/react-native,makadaw/react-native,forcedotcom/react-native,hoastoolshop/react-native,exponent/react-native,rickbeerendonk/react-native,janicduplessis/react-native,thotegowda/react-native,ptmt/react-native-macos,farazs/react-native,makadaw/react-native,javache/react-native,hoastoolshop/react-native,frantic/react-native,hoangpham95/react-native,ptmt/react-native-macos,negativetwelve/react-native,forcedotcom/react-native,brentvatne/react-native,makadaw/react-native,pandiaraj44/react-native,negativetwelve/react-native,myntra/react-native,doochik/react-native,javache/react-native,mironiasty/react-native,cpunion/react-native,dikaiosune/react-native,dikaiosune/react-native,ptmt/react-native-macos,jevakallio/react-native,janicduplessis/react-native,hammerandchisel/react-native,Bhullnatik/react-native,thotegowda/react-native,jevakallio/react-native,exponent/react-native,thotegowda/react-native,hoangpham95/react-native,myntra/react-native,exponent/react-native,doochik/react-native,javache/react-native,facebook/react-native,exponent/react-native,thotegowda/react-native,dikaiosune/react-native,myntra/react-native,ptmt/react-native-macos,hoastoolshop/react-native,kesha-antonov/react-native,farazs/react-native,exponent/react-native,exponent/react-native