Skip to content
Merged
Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion Libraries/Color/normalizeColor.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
/* eslint no-bitwise: 0 */
'use strict';

const normalizeColorObject = require('normalizeColorObject'); // TODO(macOS ISS#2323203)
import type {NativeOrDynamicColorType} from 'normalizeColorObject'; // TODO(macOS ISS#2323203)

function normalizeColor(
Expand All @@ -33,6 +32,8 @@ function normalizeColor(

// [TODO(macOS ISS#2323203)
if (typeof color === 'object' && color !== null) {
const normalizeColorObject = require('normalizeColorObject'); // TODO(macOS ISS#2323203)

const normalizedColorObj = normalizeColorObject(color);

if (normalizedColorObj !== null) {
Expand Down
4 changes: 2 additions & 2 deletions Libraries/Color/normalizeColorObject.macos.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
// [TODO(macOS ISS#2323203)
'use strict';

const normalizeColor = require('normalizeColor');

export type NativeOrDynamicColorType = {
semantic?: string,
dynamic?: {
Expand All @@ -27,6 +25,8 @@ function normalizeColorObject(
// a macos semantic color
return color;
} else if ('dynamic' in color && color.dynamic !== undefined) {
const normalizeColor = require('normalizeColor');

// a dynamic, appearance aware color
const dynamic = color.dynamic;
const dynamicColor: NativeOrDynamicColorType = {
Expand Down
3 changes: 2 additions & 1 deletion Libraries/StyleSheet/processColor.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
'use strict';

const Platform = require('Platform');
const processColorObject = require('processColorObject'); // TODO(macOS ISS#2323203)
const normalizeColor = require('normalizeColor');
import type {NativeOrDynamicColorType} from 'normalizeColorObject'; // TODO(macOS ISS#2323203)

Expand All @@ -29,6 +28,8 @@ function processColor(
}

if (typeof int32Color === 'object') {
const processColorObject = require('processColorObject'); // TODO(macOS ISS#2323203)

const processedColorObj = processColorObject(int32Color);

if (processedColorObj !== null) {
Expand Down