forked from vergnet/application-amicale
Tried to fix image modal animation
This commit is contained in:
parent
9d52fd94ef
commit
46dfbb1048
6 changed files with 8 additions and 1 deletions
|
@ -44,7 +44,7 @@
|
||||||
"react-native-calendars": "^1.260.0",
|
"react-native-calendars": "^1.260.0",
|
||||||
"react-native-collapsible": "^1.5.2",
|
"react-native-collapsible": "^1.5.2",
|
||||||
"react-native-gesture-handler": "~1.6.0",
|
"react-native-gesture-handler": "~1.6.0",
|
||||||
"react-native-image-modal": "^1.0.1",
|
"react-native-image-modal": "^1.0.4",
|
||||||
"react-native-modalize": "^1.3.6",
|
"react-native-modalize": "^1.3.6",
|
||||||
"react-native-paper": "^3.8.0",
|
"react-native-paper": "^3.8.0",
|
||||||
"react-native-reanimated": "~1.7.0",
|
"react-native-reanimated": "~1.7.0",
|
||||||
|
|
|
@ -74,6 +74,7 @@ class FeedItem extends React.Component<Props> {
|
||||||
{hasImage ?
|
{hasImage ?
|
||||||
<View style={{marginLeft: 'auto', marginRight: 'auto'}}>
|
<View style={{marginLeft: 'auto', marginRight: 'auto'}}>
|
||||||
<ImageModal
|
<ImageModal
|
||||||
|
isTranslucent={Platform.OS === 'android'}
|
||||||
resizeMode="contain"
|
resizeMode="contain"
|
||||||
imageBackgroundColor={"#000"}
|
imageBackgroundColor={"#000"}
|
||||||
style={{
|
style={{
|
||||||
|
|
|
@ -126,6 +126,7 @@ class ClubDisplayScreen extends React.Component<Props, State> {
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
}}>
|
}}>
|
||||||
<ImageModal
|
<ImageModal
|
||||||
|
isTranslucent={Platform.OS === 'android'}
|
||||||
resizeMode="contain"
|
resizeMode="contain"
|
||||||
imageBackgroundColor={this.colors.background}
|
imageBackgroundColor={this.colors.background}
|
||||||
style={{
|
style={{
|
||||||
|
|
|
@ -67,6 +67,7 @@ class FeedItemScreen extends React.Component<Props> {
|
||||||
{hasImage ?
|
{hasImage ?
|
||||||
<View style={{marginLeft: 'auto', marginRight: 'auto'}}>
|
<View style={{marginLeft: 'auto', marginRight: 'auto'}}>
|
||||||
<ImageModal
|
<ImageModal
|
||||||
|
isTranslucent={Platform.OS === 'android'}
|
||||||
resizeMode="contain"
|
resizeMode="contain"
|
||||||
imageBackgroundColor={"#000"}
|
imageBackgroundColor={"#000"}
|
||||||
style={{
|
style={{
|
||||||
|
|
|
@ -17,6 +17,7 @@ import MaterialHeaderButtons, {Item} from "../components/Custom/HeaderButton";
|
||||||
import {AnimatedValue} from "react-native-reanimated";
|
import {AnimatedValue} from "react-native-reanimated";
|
||||||
import AnimatedFAB from "../components/Custom/AnimatedFAB";
|
import AnimatedFAB from "../components/Custom/AnimatedFAB";
|
||||||
import AnimatedFocusView from "../components/Custom/AnimatedFocusView";
|
import AnimatedFocusView from "../components/Custom/AnimatedFocusView";
|
||||||
|
import {SafeAreaView} from "react-native-safe-area-context";
|
||||||
// import DATA from "../dashboard_data.json";
|
// import DATA from "../dashboard_data.json";
|
||||||
|
|
||||||
|
|
||||||
|
@ -471,6 +472,7 @@ class HomeScreen extends React.Component<Props, State> {
|
||||||
render() {
|
render() {
|
||||||
const nav = this.props.navigation;
|
const nav = this.props.navigation;
|
||||||
return (
|
return (
|
||||||
|
<SafeAreaView style={{flex: 1,}}>
|
||||||
<AnimatedFocusView
|
<AnimatedFocusView
|
||||||
{...this.props}
|
{...this.props}
|
||||||
>
|
>
|
||||||
|
@ -490,6 +492,7 @@ class HomeScreen extends React.Component<Props, State> {
|
||||||
onPress={this.openScanner}
|
onPress={this.openScanner}
|
||||||
/>
|
/>
|
||||||
</AnimatedFocusView>
|
</AnimatedFocusView>
|
||||||
|
</SafeAreaView>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -91,6 +91,7 @@ class PlanningDisplayScreen extends React.Component<Props, State> {
|
||||||
{this.displayData.logo !== null ?
|
{this.displayData.logo !== null ?
|
||||||
<View style={{marginLeft: 'auto', marginRight: 'auto'}}>
|
<View style={{marginLeft: 'auto', marginRight: 'auto'}}>
|
||||||
<ImageModal
|
<ImageModal
|
||||||
|
isTranslucent={Platform.OS === 'android'}
|
||||||
resizeMode="contain"
|
resizeMode="contain"
|
||||||
imageBackgroundColor={this.colors.background}
|
imageBackgroundColor={this.colors.background}
|
||||||
style={{
|
style={{
|
||||||
|
|
Loading…
Reference in a new issue