File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ var styles = StyleSheet.create({
90
90
backgroundColor : '#333'
91
91
} ,
92
92
rightPanel : {
93
- width : 450 ,
93
+ flex : 1 ,
94
94
} ,
95
95
welcomeWrapper : {
96
96
flex : 1 ,
Original file line number Diff line number Diff line change @@ -619,8 +619,11 @@ - (RCTViewManagerUIBlock)uiBlockWithLayoutUpdateForRootView:(RCTShadowView *)roo
619
619
620
620
// Update without animation
621
621
} else {
622
- [view reactSetFrame: frame];
623
-
622
+ // Workaround for https://github.com/ptmt/react-native-desktop/issues/47
623
+ // Need to speedup layout or make cancelling mechanism
624
+ if (!view.isReactRootView ) {
625
+ [view reactSetFrame: frame];
626
+ }
624
627
RCTViewManagerUIBlock updateBlock = updateBlocks[reactTag];
625
628
if (updateBlock) {
626
629
updateBlock (self, _viewRegistry);
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-native-desktop" ,
3
- "version" : " 0.5.0-rc3 " ,
3
+ "version" : " 0.5.1 " ,
4
4
"description" : " A framework for building native desktop apps using React" ,
5
5
"license" : " BSD-3-Clause" ,
6
6
"repository" : {
You can’t perform that action at this time.
0 commit comments