Skip to content

Commit

Permalink
Merge branch 'dev' of github.com:chaion/Makkii into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
leoaion committed Oct 16, 2019
2 parents e01904d + 5931d39 commit d285f86
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
7 changes: 5 additions & 2 deletions app/components/TouchableView.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react';
import { View, PanResponder, Dimensions } from 'react-native';
import { STATUSBAR_HEIGHT, HEADER_HEIGHT } from '../styles';

const TouchableContext = React.createContext();
const { width, height } = Dimensions.get('window');
Expand All @@ -17,6 +18,8 @@ const TouchableView = props => {
const { posState, dispatchToPosState } = React.useContext(TouchableContext);
const right = posState.right || currentRight;
const bottom = posState.bottom || currentBottom;
const sizeW = props.width || 80;
const sizeH = STATUSBAR_HEIGHT + HEADER_HEIGHT + (props.height || 80);
let newRight;
let newBottom;
const panResponder = PanResponder.create({
Expand All @@ -35,8 +38,8 @@ const TouchableView = props => {
presentState = true;
newRight = right - gestureState.dx;
newBottom = bottom - gestureState.dy;
newRight = newRight > 0 && newRight < width - 40 ? newRight : right;
newBottom = newBottom > 0 && newBottom < height - 100 ? newBottom : bottom;
newRight = newRight > 0 ? (newRight < width - sizeW ? newRight : width - sizeW) : 0;
newBottom = newBottom > 0 ? (newBottom < height - sizeH ? newBottom : height - sizeH) : 0;
touchBackView.current.setNativeProps({
style: {
right: newRight,
Expand Down
2 changes: 1 addition & 1 deletion app/pages/signed/vault/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,7 @@ class Home extends Component {
this.handleActivity();
}}
>
<Image source={{ uri: activity.imgUrl }} style={{ width: 50, height: 50 }} resizeMode="contain" />
<Image source={{ uri: activity.imgUrl }} style={{ width: 80, height: 80 }} resizeMode="contain" />
</TouchableView>
) : null}
</TouchableOpacity>
Expand Down
1 change: 1 addition & 0 deletions models/settings.model.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ export default {
yield put(createAction('updateState')(payload));
}
yield put(createAction('getCoinPrices')());
yield put(createAction('getSupportedModule')());
return true;
},
*getSupportedModule(action, { select, call, put }) {
Expand Down

0 comments on commit d285f86

Please sign in to comment.