Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export const BaseInput = styled.TextInput.attrs(props=>({
enablesReturnKeyAutomatically: true,
blurOnSubmit: true,
underlineColorAndroid: 'transparent',
disableFullscreenUI: true,
placeholderTextColor: themed.invertedMedium(props),
keyboardAppearance: themeIsDark(props)?'dark':'default',
numberOfLines: 1
}))`
font-size: ${fontSize.normal}px;
export const LoadingWrap = styled.ActivityIndicator.attrs(props=>({
color: themed.invertedMedium(props)
}))`
position: absolute;
tint-color: ${({theme})=>{
if (theme.itemSelected === true)
return 'white'
return themed.invertedMedium({theme})
}};
`
export const Loading = withTheme(props => (
))
...Platform.select({
ios: {
drawBehind: true
}
})
},
navigationBar: (Platform.Version >= 27 ? {
backgroundColor: themed.main()
} : {}),
bottomTab: {
selectedIconColor: themed.tintColor(),
selectedTextColor: themed.tintColor(),
iconColor: themed.invertedMedium(),
textColor: themed.invertedMedium(),
fontFamily: 'sans-serif-medium',
fontSize: 13,
selectedFontSize: 13
},
animations: {
setRoot: {
enabled: true,
waitForRender: true,
...Platform.select({
ios: {
content: fadeIn
},
android: fadeIn
})
},
elevation: 22,
...Platform.select({
ios: {
drawBehind: true
}
})
},
navigationBar: (Platform.Version >= 27 ? {
backgroundColor: themed.main()
} : {}),
bottomTab: {
selectedIconColor: themed.tintColor(),
selectedTextColor: themed.tintColor(),
iconColor: themed.invertedMedium(),
textColor: themed.invertedMedium(),
fontFamily: 'sans-serif-medium',
fontSize: 13,
selectedFontSize: 13
},
animations: {
setRoot: {
enabled: true,
waitForRender: true,
...Platform.select({
ios: {
content: fadeIn
},
android: fadeIn
})