Comments (5)
This will be fixed when #234 is merged.
from react-native-macos.
It works right . Thanks @aleclarson ! 👍
from react-native-macos.
Thanks^_^
It's also not working with #234 . Maybe I did something wrong?
My steps
- download code from https://github.com/ptmt/react-native-macos/tree/fa28701469188d2b757af84934e13014dacbed9d, which is last commit in #234
- delete
node_modules/react-native-macos/React
in my demo project,and copyReact
(downloaded) to my demo project - build and run ,transform also not working after resize the window。
I'm sure it's #234 code.
key codes:
render() {
return (
<TouchableOpacity
style={{position:"absolute", right:100,width:200,height:200,transform:[{translateY:101}],backgroundColor:"red"}}>
</TouchableOpacity>
)
}
from react-native-macos.
After I delete some code at RCTView.m
,It working right:
// if (!CGSizeEqualToSize(self.bounds.size, oldSize)) {
[self.layer setNeedsDisplay];
// }
I don't know if it's appropriate to make such a change.
from react-native-macos.
Nice find!
When the frame
is updated (eg: by resizing the window), the transform
needs to be reapplied.
I've added a new commit to #234, which you should try and let me know if it works. 572a274
If it doesn't work, we can call [self.layer setNeedsDisplay]
when _transform
is not an identity transform.
from react-native-macos.
Related Issues (20)
- NPM release HOT 1
- [RFC] upgrade React to v16.6.3 HOT 1
- (react-native-svgkit) SVG support for macOS
- Unofficial roadmap HOT 6
- onpress emit in error area when view use transform HOT 4
- textAlign not work HOT 2
- on mouse right click, show up context menu HOT 3
- TouchableHighlight works only with the first touch HOT 1
- TextInput ignores all style prop
- Build failed: Print: Entry, ":CFBundleIdentifier", Does Not Exist HOT 2
- Failing CI - Travis CI not configured HOT 2
- Project Catalyst. Does it truly deprecates this RN fork? HOT 4
- ENOENT: no such file or directory, chdir HOT 1
- Incompatible with React 16.3 Context Provider API
- Can't change BackgroundColor of TextInput
- `react-native-macos init MyProject` fails. HOT 3
- command not found: react-native-macos HOT 1
- command not found: react-native-macos
- Unable to start macOS app created from the template (without manual pod installation)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-macos.