Skip to content

Commit 2de28a6

Browse files
elicwhitefacebook-github-bot
authored andcommitted
StyleObj -> DangerouslyImpreciseStyleProp
Summary: Migrating everything to import from StyleSheet instead of StyleSheetTypes. Search and replaced ``` import type {StyleObj} from 'StyleSheetTypes'; ``` to ``` import type {DangerouslyImpreciseStyleProp} from 'StyleSheet'; ``` and then replacing `StyleObj` with `DangerouslyImpreciseStyleProp` and fixing up the remaining flow errors by hand. Reviewed By: yungsters Differential Revision: D7184077 fbshipit-source-id: b8dabb9d48038b5a997ab715687300bad57aa9d4
1 parent 0a74e34 commit 2de28a6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

js/RNTesterExampleList.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const View = require('View');
2222

2323
import type {RNTesterExample} from './RNTesterList.ios';
2424
import type {PassProps} from './RNTesterStatePersister';
25-
import type {StyleObj} from 'StyleSheetTypes';
25+
import type {DangerouslyImpreciseStyleProp} from 'StyleSheet';
2626

2727
type Props = {
2828
onNavigate: Function,
@@ -31,8 +31,8 @@ type Props = {
3131
APIExamples: Array<RNTesterExample>,
3232
},
3333
persister: PassProps<*>,
34-
searchTextInputStyle: StyleObj,
35-
style?: ?StyleObj,
34+
searchTextInputStyle: DangerouslyImpreciseStyleProp,
35+
style?: ?DangerouslyImpreciseStyleProp,
3636
};
3737

3838
class RowComponent extends React.PureComponent<{

js/ScrollViewExample.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*/
1111
'use strict';
1212

13-
import type {StyleObj} from 'StyleSheetTypes';
13+
import type {DangerouslyImpreciseStyleProp} from 'StyleSheet';
1414

1515
const ActivityIndicator = require('ActivityIndicator');
1616
const Platform = require('Platform');
@@ -252,7 +252,7 @@ if (Platform.OS === 'ios') {
252252
class Thumb extends React.PureComponent<{|
253253
source?: string | number,
254254
msg?: string,
255-
style?: StyleObj,
255+
style?: DangerouslyImpreciseStyleProp,
256256
|}> {
257257
render() {
258258
const {source} = this.props;

0 commit comments

Comments
 (0)