ptmt / react-native-macos

[deprecated in favor of https://microsoft.github.io/react-native-windows/] React Native for macOS is an experimental fork for writing desktop apps using Cocoa
MIT License
11.24k stars 429 forks source link

Resize window #161

Closed tinc0709 closed 7 years ago

tinc0709 commented 7 years ago

How to resize window in react native macos

ptmt commented 7 years ago

It's not possible right now, but can be done easily by writing native module. What's your task?

jaywcjlove commented 7 years ago

linux

How is this problem solved? Figure.

@ptmt

ptmt commented 7 years ago

@jaywcjlove , not yet. See https://github.com/ptmt/react-native-macos/issues/83

After finishing merging with latest React Native changes: https://github.com/ptmt/react-native-macos/pull/163 I'll probably take a look on resizing problem once again.

ptmt commented 7 years ago

First results of new PR look promising. @jaywcjlove, do you have this repository open to do some experiments with it?

jaywcjlove commented 7 years ago

@ptmt I experimented with some methods, Not solved . Have no ability to solve the problem. So I use electron to develop. Waiting for you to solve. I try again.

https://github.com/jaywcjlove/amac

ptmt commented 7 years ago

Electron is absolutely the best way to do it right now. Thanks for the repo, I'll use it as a test case.

ptmt commented 7 years ago

Do you have https://github.com/jaywcjlove/amac previous RN version?

jaywcjlove commented 7 years ago

@ptmt https://github.com/jaywcjlove/react-native-macos-amac

Electron is packed too big.

jaywcjlove commented 5 years ago

@ptmt The new version does not have this problem. thx!