Skip to content

Commit 0a67133

Browse files
Zack Argylefacebook-github-bot
authored andcommitted
Make ColorValue public in StyleSheet.js
Summary: This diff makes the ColorValue export "official" by exporting it from StyleSheet in order to encourage its use in product code. Changelog: Moved ColorValue export from StyleSheetTypes to StyleSheet Reviewed By: TheSavior Differential Revision: D21076969 fbshipit-source-id: 972ef5a1b13bd9f6b7691a279a73168e7ce9d9ab
1 parent 894f6b3 commit 0a67133

File tree

49 files changed

+75
-71
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+75
-71
lines changed

Libraries/ActionSheetIOS/ActionSheetIOS.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import RCTActionSheetManager from './NativeActionSheetManager';
1414

1515
const invariant = require('invariant');
1616
const processColor = require('../StyleSheet/processColor');
17-
import type {ColorValue} from '../StyleSheet/StyleSheetTypes';
17+
import type {ColorValue} from '../StyleSheet/StyleSheet';
1818
import type {ProcessedColorValue} from '../StyleSheet/processColor';
1919

2020
/**

Libraries/Components/ActivityIndicator/ActivityIndicator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const StyleSheet = require('../../StyleSheet/StyleSheet');
1616
const View = require('../View/View');
1717
import type {HostComponent} from '../../Renderer/shims/ReactNativeTypes';
1818
import type {ViewProps} from '../View/ViewPropTypes';
19-
import type {ColorValue} from '../../StyleSheet/StyleSheetTypes';
19+
import type {ColorValue} from '../../StyleSheet/StyleSheet';
2020

2121
const PlatformActivityIndicator =
2222
Platform.OS === 'android'

Libraries/Components/ActivityIndicator/ActivityIndicatorViewNativeComponent.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
import type {WithDefault} from '../../Types/CodegenTypes';
1414

15-
import type {ColorValue} from '../../StyleSheet/StyleSheetTypes';
15+
import type {ColorValue} from '../../StyleSheet/StyleSheet';
1616
import type {ViewProps} from '../View/ViewPropTypes';
1717

1818
import codegenNativeComponent from '../../Utilities/codegenNativeComponent';

Libraries/Components/Button.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const View = require('./View/View');
2121
const invariant = require('invariant');
2222

2323
import type {PressEvent} from '../Types/CoreEventTypes';
24-
import type {ColorValue} from '../StyleSheet/StyleSheetTypes';
24+
import type {ColorValue} from '../StyleSheet/StyleSheet';
2525

2626
type ButtonProps = $ReadOnly<{|
2727
/**

Libraries/Components/DrawerAndroid/AndroidDrawerLayoutNativeComponent.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
'use strict';
1212

1313
import type {ViewProps} from 'react-native/Libraries/Components/View/ViewPropTypes';
14-
import type {ColorValue} from 'react-native/Libraries/StyleSheet/StyleSheetTypes';
14+
import type {ColorValue} from 'react-native/Libraries/StyleSheet/StyleSheet';
1515
import type {
1616
WithDefault,
1717
DirectEventHandler,

Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ import AndroidDrawerLayoutNativeComponent, {
2525

2626
const DRAWER_STATES = ['Idle', 'Dragging', 'Settling'];
2727

28-
import type {ViewStyleProp} from '../../StyleSheet/StyleSheet';
29-
import type {ColorValue} from '../../StyleSheet/StyleSheetTypes';
28+
import type {ColorValue, ViewStyleProp} from '../../StyleSheet/StyleSheet';
3029
import type {DirectEventHandler} from '../../Types/CodegenTypes';
3130
import type {
3231
MeasureOnSuccessCallback,

Libraries/Components/Picker/AndroidDialogPickerNativeComponent.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import type {
2222
} from '../../Types/CodegenTypes';
2323
import type {HostComponent} from '../../Renderer/shims/ReactNativeTypes';
2424
import type {TextStyleProp} from '../../StyleSheet/StyleSheet';
25-
import type {ColorValue} from '../../StyleSheet/StyleSheetTypes';
25+
import type {ColorValue} from '../../StyleSheet/StyleSheet';
2626
import type {ProcessedColorValue} from '../../StyleSheet/processColor';
2727
import type {ViewProps} from '../../Components/View/ViewPropTypes';
2828

Libraries/Components/Picker/AndroidDropdownPickerNativeComponent.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import type {
2222
} from '../../Types/CodegenTypes';
2323
import type {HostComponent} from '../../Renderer/shims/ReactNativeTypes';
2424
import type {TextStyleProp} from '../../StyleSheet/StyleSheet';
25-
import type {ColorValue} from '../../StyleSheet/StyleSheetTypes';
25+
import type {ColorValue} from '../../StyleSheet/StyleSheet';
2626
import type {ProcessedColorValue} from '../../StyleSheet/processColor';
2727
import type {ViewProps} from '../../Components/View/ViewPropTypes';
2828

Libraries/Components/Picker/Picker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const React = require('react');
1717
const UnimplementedView = require('../UnimplementedViews/UnimplementedView');
1818

1919
import type {TextStyleProp} from '../../StyleSheet/StyleSheet';
20-
import type {ColorValue} from '../../StyleSheet/StyleSheetTypes';
20+
import type {ColorValue} from '../../StyleSheet/StyleSheet';
2121

2222
const MODE_DIALOG = 'dialog';
2323
const MODE_DROPDOWN = 'dropdown';

Libraries/Components/Picker/PickerAndroid.android.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,8 @@ import StyleSheet from '../../StyleSheet/StyleSheet';
2121
import invariant from 'invariant';
2222
import processColor from '../../StyleSheet/processColor';
2323

24-
import type {ColorValue} from '../../StyleSheet/StyleSheetTypes';
2524
import type {SyntheticEvent} from '../../Types/CoreEventTypes';
26-
import type {TextStyleProp} from '../../StyleSheet/StyleSheet';
25+
import type {ColorValue, TextStyleProp} from '../../StyleSheet/StyleSheet';
2726

2827
type PickerItemSelectSyntheticEvent = SyntheticEvent<
2928
$ReadOnly<{|

0 commit comments

Comments
 (0)