mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-13 22:43:59 +08:00
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:
committed by
Facebook Github Bot
parent
bf2500e38e
commit
7b3c91ef16
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user