Skip to content

remove references to RCTDynamicColor #1060

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 2, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@
#import <XCTest/XCTest.h>

#import <React/RCTConvert.h>
#import <React/RCTDynamicColor.h>

@interface RCTConvert_NSColorTests : XCTestCase

@@ -85,7 +84,6 @@ - (void)testDynamicColor
// 16777215 == 0x00FFFFFF == white
id json = RCTJSONParse(@"{ \"dynamic\": { \"light\":0, \"dark\":16777215 } }", nil);
NSColor *value = [RCTConvert UIColor:json];
XCTAssertTrue([value isKindOfClass:[RCTDynamicColor class]]);
CGFloat r, g, b, a;

[NSAppearance setCurrentAppearance:[NSAppearance appearanceNamed:NSAppearanceNameAqua]];
@@ -109,7 +107,6 @@ - (void)testCompositeDynamicColor
{
id json = RCTJSONParse(@"{ \"dynamic\": { \"light\": { \"semantic\": \"systemRedColor\" }, \"dark\":{ \"semantic\": \"systemBlueColor\" } } }", nil);
NSColor *value = [RCTConvert UIColor:json];
XCTAssertTrue([value isKindOfClass:[RCTDynamicColor class]]);
CGFloat r1, g1, b1, a1;
CGFloat r2, g2, b2, a2;