mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
Remove unused styles (#22083)
Summary: Removes unused styles. NOTE: Lint rule `react-native/no-unused-styles` not added because of custom lint rule internally at Facebook that does this. Pull Request resolved: https://github.com/facebook/react-native/pull/22083 Differential Revision: D12929443 Pulled By: TheSavior fbshipit-source-id: d42b0be3db745e445447e65df3b78b61f53e4229
This commit is contained in:
committed by
Facebook Github Bot
parent
84c5416617
commit
ffd7195543
@@ -57,10 +57,6 @@ const styles = StyleSheet.create({
|
||||
flexDirection: 'row',
|
||||
alignSelf: 'center',
|
||||
},
|
||||
textColumn: {
|
||||
flex: 1,
|
||||
flexDirection: 'column',
|
||||
},
|
||||
imageWide: {
|
||||
borderWidth: 1,
|
||||
borderColor: 'black',
|
||||
|
||||
@@ -259,16 +259,9 @@ const styles = StyleSheet.create({
|
||||
flexDirection: 'row',
|
||||
flex: 1,
|
||||
},
|
||||
url: {
|
||||
fontSize: 9,
|
||||
marginBottom: 14,
|
||||
},
|
||||
image: {
|
||||
margin: 4,
|
||||
},
|
||||
info: {
|
||||
flex: 1,
|
||||
},
|
||||
container: {
|
||||
flex: 1,
|
||||
},
|
||||
|
||||
@@ -57,17 +57,11 @@ const styles = StyleSheet.create({
|
||||
justifyContent: 'center',
|
||||
alignItems: 'center',
|
||||
},
|
||||
horizontal: {
|
||||
flexDirection: 'row',
|
||||
},
|
||||
storyBackground: {
|
||||
width: 250,
|
||||
height: 150,
|
||||
borderWidth: 1,
|
||||
},
|
||||
text: {
|
||||
fontSize: 13.5,
|
||||
},
|
||||
});
|
||||
|
||||
module.exports = ImageCapInsetsExample;
|
||||
|
||||
@@ -156,9 +156,6 @@ const styles = StyleSheet.create({
|
||||
padding: 10,
|
||||
marginBottom: 10,
|
||||
},
|
||||
buttonText: {
|
||||
fontSize: 16,
|
||||
},
|
||||
viewContainer: {
|
||||
flex: 1,
|
||||
flexDirection: 'row',
|
||||
|
||||
@@ -65,12 +65,6 @@ class IntentAndroidExample extends React.Component {
|
||||
}
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
container: {
|
||||
flex: 1,
|
||||
backgroundColor: 'white',
|
||||
padding: 10,
|
||||
paddingTop: 30,
|
||||
},
|
||||
button: {
|
||||
padding: 10,
|
||||
backgroundColor: '#3B5998',
|
||||
|
||||
@@ -223,13 +223,6 @@ const styles = StyleSheet.create({
|
||||
color: 'white',
|
||||
paddingHorizontal: 8,
|
||||
},
|
||||
rowText: {
|
||||
color: '#888888',
|
||||
},
|
||||
thumbText: {
|
||||
fontSize: 20,
|
||||
color: '#888888',
|
||||
},
|
||||
buttonContents: {
|
||||
flexDirection: 'row',
|
||||
justifyContent: 'center',
|
||||
|
||||
@@ -119,10 +119,6 @@ const styles = StyleSheet.create({
|
||||
flex: 1,
|
||||
backgroundColor: 'white',
|
||||
},
|
||||
singleLine: {
|
||||
fontSize: 16,
|
||||
padding: 4,
|
||||
},
|
||||
text: {
|
||||
margin: 10,
|
||||
},
|
||||
|
||||
@@ -230,9 +230,6 @@ const styles = StyleSheet.create({
|
||||
borderColor: '#f0f0f0',
|
||||
backgroundColor: '#f9f9f9',
|
||||
},
|
||||
bottomSpacer: {
|
||||
marginBottom: 100,
|
||||
},
|
||||
});
|
||||
|
||||
exports.framework = 'React';
|
||||
|
||||
@@ -69,16 +69,6 @@ const styles = StyleSheet.create({
|
||||
descriptionText: {
|
||||
fontSize: 14,
|
||||
},
|
||||
disclosure: {
|
||||
position: 'absolute',
|
||||
top: 0,
|
||||
right: 0,
|
||||
padding: 10,
|
||||
},
|
||||
disclosureIcon: {
|
||||
width: 12,
|
||||
height: 8,
|
||||
},
|
||||
children: {
|
||||
margin: 10,
|
||||
},
|
||||
|
||||
@@ -69,10 +69,6 @@ class SlidingCompleteExample extends React.Component<
|
||||
}
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
slider: {
|
||||
height: 10,
|
||||
margin: 10,
|
||||
},
|
||||
text: {
|
||||
fontSize: 14,
|
||||
textAlign: 'center',
|
||||
|
||||
@@ -518,11 +518,6 @@ const styles = StyleSheet.create({
|
||||
backgroundColor: '#eeeeee',
|
||||
padding: 10,
|
||||
},
|
||||
title: {
|
||||
marginTop: 16,
|
||||
marginBottom: 8,
|
||||
fontWeight: 'bold',
|
||||
},
|
||||
modalButton: {
|
||||
marginTop: 10,
|
||||
},
|
||||
|
||||
@@ -490,9 +490,6 @@ class AutogrowingTextInputExample extends React.Component<
|
||||
}
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
page: {
|
||||
paddingBottom: 300,
|
||||
},
|
||||
default: {
|
||||
borderWidth: StyleSheet.hairlineWidth,
|
||||
borderColor: '#0f0f0f',
|
||||
@@ -520,13 +517,6 @@ const styles = StyleSheet.create({
|
||||
fontFamily: 'Cochin',
|
||||
height: 60,
|
||||
},
|
||||
multilineChild: {
|
||||
width: 50,
|
||||
height: 40,
|
||||
position: 'absolute',
|
||||
right: 5,
|
||||
backgroundColor: 'red',
|
||||
},
|
||||
eventLabel: {
|
||||
margin: 3,
|
||||
fontSize: 12,
|
||||
|
||||
@@ -467,10 +467,6 @@ const styles = StyleSheet.create({
|
||||
justifyContent: 'center',
|
||||
flexDirection: 'row',
|
||||
},
|
||||
icon: {
|
||||
width: 24,
|
||||
height: 24,
|
||||
},
|
||||
image: {
|
||||
width: 50,
|
||||
height: 50,
|
||||
|
||||
@@ -362,10 +362,6 @@ const styles = StyleSheet.create({
|
||||
color: 'white',
|
||||
fontSize: 13,
|
||||
},
|
||||
spinner: {
|
||||
width: 20,
|
||||
marginRight: 6,
|
||||
},
|
||||
buttons: {
|
||||
flexDirection: 'row',
|
||||
height: 30,
|
||||
|
||||
Reference in New Issue
Block a user