style: lint fix
This commit is contained in:
parent
2aae47489b
commit
d470cd0080
4
index.js
4
index.js
@ -2,8 +2,8 @@
|
|||||||
* @format
|
* @format
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {AppRegistry} from 'react-native';
|
import { AppRegistry } from 'react-native';
|
||||||
import App from './App';
|
import App from './App';
|
||||||
import {name as appName} from './app.json';
|
import { name as appName } from './app.json';
|
||||||
|
|
||||||
AppRegistry.registerComponent(appName, () => App);
|
AppRegistry.registerComponent(appName, () => App);
|
||||||
|
@ -23,7 +23,8 @@ const CardView = (props: CardViewProps) => {
|
|||||||
containerStyle={styles.shadowContainer}
|
containerStyle={styles.shadowContainer}
|
||||||
style={styles.shadowChildContainerStyle}
|
style={styles.shadowChildContainerStyle}
|
||||||
distance={4}
|
distance={4}
|
||||||
offset={[0, 2]}>
|
offset={[0, 2]}
|
||||||
|
>
|
||||||
<View style={styles.background}>
|
<View style={styles.background}>
|
||||||
<Text>Card 1</Text>
|
<Text>Card 1</Text>
|
||||||
</View>
|
</View>
|
||||||
|
@ -29,7 +29,8 @@ class CardPreview extends React.Component {
|
|||||||
flex: 1,
|
flex: 1,
|
||||||
backgroundColor: 'rgba(0,0,0,0.3)',
|
backgroundColor: 'rgba(0,0,0,0.3)',
|
||||||
borderRadius: 8,
|
borderRadius: 8,
|
||||||
}}>
|
}}
|
||||||
|
>
|
||||||
<View style={{ flex: 1 }}>
|
<View style={{ flex: 1 }}>
|
||||||
<TouchableOpacity style={{ flex: 1 }}>
|
<TouchableOpacity style={{ flex: 1 }}>
|
||||||
<Text
|
<Text
|
||||||
@ -40,7 +41,8 @@ class CardPreview extends React.Component {
|
|||||||
fontSize: 17,
|
fontSize: 17,
|
||||||
fontWeight: 'bold',
|
fontWeight: 'bold',
|
||||||
color: '#ffffff',
|
color: '#ffffff',
|
||||||
}}>
|
}}
|
||||||
|
>
|
||||||
{this.props.name}
|
{this.props.name}
|
||||||
</Text>
|
</Text>
|
||||||
<View style={{ flex: 1, justifyContent: 'center', paddingTop: 20 }}>
|
<View style={{ flex: 1, justifyContent: 'center', paddingTop: 20 }}>
|
||||||
@ -51,7 +53,8 @@ class CardPreview extends React.Component {
|
|||||||
alignSelf: 'center',
|
alignSelf: 'center',
|
||||||
color: '#E0E0E0',
|
color: '#E0E0E0',
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
}}>
|
}}
|
||||||
|
>
|
||||||
{this.props.uid
|
{this.props.uid
|
||||||
? this.props.uid.substr(0, 4) +
|
? this.props.uid.substr(0, 4) +
|
||||||
'-' +
|
'-' +
|
||||||
@ -71,7 +74,8 @@ class CardPreview extends React.Component {
|
|||||||
color: '#FAFAFA',
|
color: '#FAFAFA',
|
||||||
fontWeight: '500',
|
fontWeight: '500',
|
||||||
letterSpacing: -0.5,
|
letterSpacing: -0.5,
|
||||||
}}>
|
}}
|
||||||
|
>
|
||||||
{i18n.t('card_touch_to_enable')}
|
{i18n.t('card_touch_to_enable')}
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
@ -84,7 +88,8 @@ class CardPreview extends React.Component {
|
|||||||
flex: 1,
|
flex: 1,
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
}}>
|
}}
|
||||||
|
>
|
||||||
<Text style={{ fontSize: 14, color: '#FAFAFA' }}>
|
<Text style={{ fontSize: 14, color: '#FAFAFA' }}>
|
||||||
{i18n.t('card_edit')}
|
{i18n.t('card_edit')}
|
||||||
</Text>
|
</Text>
|
||||||
@ -95,7 +100,8 @@ class CardPreview extends React.Component {
|
|||||||
flex: 1,
|
flex: 1,
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
}}>
|
}}
|
||||||
|
>
|
||||||
<Text style={{ fontSize: 14, color: '#ffffff' }}>
|
<Text style={{ fontSize: 14, color: '#ffffff' }}>
|
||||||
{i18n.t('card_delete')}
|
{i18n.t('card_delete')}
|
||||||
</Text>
|
</Text>
|
||||||
@ -112,7 +118,8 @@ class CardPreview extends React.Component {
|
|||||||
marginTop: 16,
|
marginTop: 16,
|
||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
},
|
},
|
||||||
]}>
|
]}
|
||||||
|
>
|
||||||
{this.props.image ? (
|
{this.props.image ? (
|
||||||
<ImageBackground
|
<ImageBackground
|
||||||
source={{ uri: this.props.image }}
|
source={{ uri: this.props.image }}
|
||||||
@ -121,7 +128,8 @@ class CardPreview extends React.Component {
|
|||||||
resizeMode: 'contain',
|
resizeMode: 'contain',
|
||||||
}}
|
}}
|
||||||
blurRadius={2}
|
blurRadius={2}
|
||||||
borderRadius={8}>
|
borderRadius={8}
|
||||||
|
>
|
||||||
{cardContent}
|
{cardContent}
|
||||||
</ImageBackground>
|
</ImageBackground>
|
||||||
) : (
|
) : (
|
||||||
@ -132,7 +140,8 @@ class CardPreview extends React.Component {
|
|||||||
backgroundColor: '#03A9F4',
|
backgroundColor: '#03A9F4',
|
||||||
}}
|
}}
|
||||||
blurRadius={2}
|
blurRadius={2}
|
||||||
borderRadius={8}>
|
borderRadius={8}
|
||||||
|
>
|
||||||
{cardContent}
|
{cardContent}
|
||||||
</View>
|
</View>
|
||||||
)}
|
)}
|
||||||
@ -189,7 +198,8 @@ class ETextInput extends React.Component {
|
|||||||
fontWeight: 'bold',
|
fontWeight: 'bold',
|
||||||
},
|
},
|
||||||
this.props.titleStyle,
|
this.props.titleStyle,
|
||||||
]}>
|
]}
|
||||||
|
>
|
||||||
{this.props.title}
|
{this.props.title}
|
||||||
</Text>
|
</Text>
|
||||||
|
|
||||||
@ -377,19 +387,22 @@ class CardEditScreen extends React.Component {
|
|||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
backgroundColor: '#ffffff',
|
backgroundColor: '#ffffff',
|
||||||
}}>
|
}}
|
||||||
|
>
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
flex: 1,
|
flex: 1,
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
}}>
|
}}
|
||||||
|
>
|
||||||
<Text
|
<Text
|
||||||
style={{
|
style={{
|
||||||
fontSize: 17,
|
fontSize: 17,
|
||||||
fontWeight: 'bold',
|
fontWeight: 'bold',
|
||||||
textAlignVertical: 'center',
|
textAlignVertical: 'center',
|
||||||
}}>
|
}}
|
||||||
|
>
|
||||||
{this.state.mode === 'add'
|
{this.state.mode === 'add'
|
||||||
? i18n.t('header_add')
|
? i18n.t('header_add')
|
||||||
: i18n.t('header_edit')}
|
: i18n.t('header_edit')}
|
||||||
@ -404,13 +417,15 @@ class CardEditScreen extends React.Component {
|
|||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
}}
|
}}
|
||||||
onPress={() => this.saveCard()}>
|
onPress={() => this.saveCard()}
|
||||||
|
>
|
||||||
<Icon name="save" size={26} color={'rgba(0,0,0,0.7)'} />
|
<Icon name="save" size={26} color={'rgba(0,0,0,0.7)'} />
|
||||||
</TouchableOpacity>
|
</TouchableOpacity>
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
<ScrollView
|
<ScrollView
|
||||||
style={{ flex: 1, paddingHorizontal: 24, paddingTop: 16 }}>
|
style={{ flex: 1, paddingHorizontal: 24, paddingTop: 16 }}
|
||||||
|
>
|
||||||
<ETextInput
|
<ETextInput
|
||||||
title={i18n.t('edit_name')}
|
title={i18n.t('edit_name')}
|
||||||
value={this.state.name}
|
value={this.state.name}
|
||||||
@ -452,7 +467,8 @@ class CardEditScreen extends React.Component {
|
|||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
color: '#9E9E9E',
|
color: '#9E9E9E',
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
}}>
|
}}
|
||||||
|
>
|
||||||
-
|
-
|
||||||
</Text>
|
</Text>
|
||||||
<ETextInput
|
<ETextInput
|
||||||
@ -481,7 +497,8 @@ class CardEditScreen extends React.Component {
|
|||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
color: '#9E9E9E',
|
color: '#9E9E9E',
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
}}>
|
}}
|
||||||
|
>
|
||||||
-
|
-
|
||||||
</Text>
|
</Text>
|
||||||
<ETextInput
|
<ETextInput
|
||||||
@ -510,7 +527,8 @@ class CardEditScreen extends React.Component {
|
|||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
color: '#9E9E9E',
|
color: '#9E9E9E',
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
}}>
|
}}
|
||||||
|
>
|
||||||
-
|
-
|
||||||
</Text>
|
</Text>
|
||||||
<ETextInput
|
<ETextInput
|
||||||
@ -536,7 +554,8 @@ class CardEditScreen extends React.Component {
|
|||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
letterSpacing: -0.4,
|
letterSpacing: -0.4,
|
||||||
color: this.state.sidError ? '#F44336' : '#9E9E9E',
|
color: this.state.sidError ? '#F44336' : '#9E9E9E',
|
||||||
}}>
|
}}
|
||||||
|
>
|
||||||
{i18n.t('edit_sid_notice')}
|
{i18n.t('edit_sid_notice')}
|
||||||
</Text>
|
</Text>
|
||||||
<TouchableOpacity
|
<TouchableOpacity
|
||||||
@ -548,9 +567,11 @@ class CardEditScreen extends React.Component {
|
|||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
}}
|
}}
|
||||||
onPress={() => this.setRandomSid()}>
|
onPress={() => this.setRandomSid()}
|
||||||
|
>
|
||||||
<Text
|
<Text
|
||||||
style={{ fontSize: 17, color: '#ffffff', fontWeight: '500' }}>
|
style={{ fontSize: 17, color: '#ffffff', fontWeight: '500' }}
|
||||||
|
>
|
||||||
{i18n.t('edit_random')}
|
{i18n.t('edit_random')}
|
||||||
</Text>
|
</Text>
|
||||||
</TouchableOpacity>
|
</TouchableOpacity>
|
||||||
@ -561,7 +582,8 @@ class CardEditScreen extends React.Component {
|
|||||||
color: '#9E9E9E',
|
color: '#9E9E9E',
|
||||||
marginTop: 20,
|
marginTop: 20,
|
||||||
fontWeight: 'bold',
|
fontWeight: 'bold',
|
||||||
}}>
|
}}
|
||||||
|
>
|
||||||
{i18n.t('edit_preview')}
|
{i18n.t('edit_preview')}
|
||||||
</Text>
|
</Text>
|
||||||
<CardPreview
|
<CardPreview
|
||||||
|
Loading…
Reference in New Issue
Block a user