You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ideally, it would be nice to just keep this the same line regardless of platform, whether through a category extension to NSImage or a couple of C-style functions in RCTUIKit.h, similar to what we have for various NSValues.
This has been added because it would have proven to be useful in a macOS implementation of react-native-svg. While simple to implement on the fly, this could prove useful for other modules that people may want to create, so it could probably find a better home in react-native-macos proper.
The text was updated successfully, but these errors were encountered:
Proposal: Add an easy cross-platform way to get a CGImage from an NSImage
Summary
This is a minor syntactic change that would make working with NSImages easier.
Motivation
This is mostly for syntactic sugar purposes. For example, there are a number of places in react-native-macos that look something like this:
Ideally, it would be nice to just keep this the same line regardless of platform, whether through a category extension to
NSImage
or a couple of C-style functions in RCTUIKit.h, similar to what we have for various NSValues.This has been added because it would have proven to be useful in a macOS implementation of react-native-svg. While simple to implement on the fly, this could prove useful for other modules that people may want to create, so it could probably find a better home in react-native-macos proper.
The text was updated successfully, but these errors were encountered: