mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-20 11:51:52 +03:00
fine tuned extension shadow behaviour
This commit is contained in:
parent
5cd61d4a51
commit
77e96d5ff9
@ -105,7 +105,6 @@ export const EditorToolbar = ({
|
||||
|
||||
|
||||
const _hideExtension = () => {
|
||||
setIsExtensionVisible(false);
|
||||
Animated.timing(translateY.current, {
|
||||
toValue: 200,
|
||||
duration: 200,
|
||||
@ -135,9 +134,7 @@ export const EditorToolbar = ({
|
||||
onHandlerStateChange={_onPanHandlerStateChange}
|
||||
onEnded={_onPanEnded}>
|
||||
<Animated.View style={_animatedStyle}>
|
||||
<View onLayout={(e)=>{
|
||||
|
||||
}}>
|
||||
<View style={styles.dropShadow}>
|
||||
{isExtensionVisible && <View style={styles.indicator} />}
|
||||
<UploadsGalleryModal
|
||||
ref={uploadsGalleryModalRef}
|
||||
@ -157,7 +154,7 @@ export const EditorToolbar = ({
|
||||
}
|
||||
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
<View style={isExtensionVisible? styles.container:styles.shadowedContainer}>
|
||||
|
||||
{_renderExtension()}
|
||||
|
||||
|
@ -1,16 +1,28 @@
|
||||
import EStyleSheet from 'react-native-extended-stylesheet';
|
||||
import { getBottomSpace } from 'react-native-iphone-x-helper';
|
||||
|
||||
const _dropShadow = {
|
||||
shadowOpacity: 0.1,
|
||||
shadowOffset: {
|
||||
width: 0,
|
||||
height: -3,
|
||||
},
|
||||
backgroundColor: '$primaryBackgroundColor',
|
||||
}
|
||||
|
||||
export default EStyleSheet.create({
|
||||
container: {
|
||||
width: '$deviceWidth',
|
||||
backgroundColor: '$primaryBackgroundColor',
|
||||
shadowOpacity: 0.1,
|
||||
shadowOffset: {
|
||||
width: 0,
|
||||
height: -3,
|
||||
},
|
||||
elevation: 3,
|
||||
backgroundColor: '$primaryBackgroundColor',
|
||||
},
|
||||
shadowedContainer:{
|
||||
elevation: 3,
|
||||
width: '$deviceWidth',
|
||||
..._dropShadow
|
||||
},
|
||||
dropShadow: {
|
||||
..._dropShadow
|
||||
},
|
||||
buttonsContainer: {
|
||||
justifyContent: 'space-between',
|
||||
@ -52,11 +64,13 @@ export default EStyleSheet.create({
|
||||
backgroundColor: '$primaryBlue',
|
||||
},
|
||||
indicator: {
|
||||
height: 8,
|
||||
width: 44,
|
||||
backgroundColor: '$primaryWhiteLightBackground',
|
||||
borderRadius: 8,
|
||||
height: 8,
|
||||
width: 44,
|
||||
backgroundColor: '$primaryWhiteLightBackground',
|
||||
borderRadius: 8,
|
||||
margin: 8,
|
||||
alignSelf:'center'
|
||||
alignSelf: 'center'
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user