Fix inline styles eslint warnings for examples (#22123)

Summary:
Fixes `react-native/no-inline-styles` warning for several examples. I'm limiting the size of this PR to make it simpler to review.
Pull Request resolved: https://github.com/facebook/react-native/pull/22123

Reviewed By: RSNara

Differential Revision: D12929701

Pulled By: TheSavior

fbshipit-source-id: 7a976f2208b557fcfda46d5b586b30652c550eb2
This commit is contained in:
Ignacio Olaciregui
2018-11-08 17:17:26 -08:00
committed by Facebook Github Bot
parent bf2500e38e
commit 7b3c91ef16
12 changed files with 124 additions and 58 deletions

View File

@@ -11,6 +11,8 @@
const BatchedBridge = require('BatchedBridge');
const React = require('React');
const ReactNative = require('react-native');
const {StyleSheet} = ReactNative;
const ProgressBar = require('ProgressBarAndroid');
const View = require('View');
@@ -29,7 +31,7 @@ class ProgressBarSampleApp extends React.Component {
<ProgressBar styleAttr="Inverse" testID="Inverse" />
<ProgressBar styleAttr="SmallInverse" testID="SmallInverse" />
<ProgressBar styleAttr="LargeInverse" testID="LargeInverse" />
<View style={{width: 200}}>
<View style={styles.wrapper}>
<ProgressBar styleAttr="Horizontal" testID="Horizontal200" />
</View>
</View>
@@ -48,4 +50,10 @@ BatchedBridge.registerCallableModule(
ProgressBarTestModule,
);
const styles = StyleSheet.create({
wrapper: {
width: 200,
},
});
module.exports = ProgressBarTestModule;