Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions example/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,7 @@ export default function App() {
[]
)();

const staticPinPosition = size
? { x: size.width / 2, y: size.height / 2 }
: undefined;

const staticPinPosition = { x: size.width / 2, y: size.height / 2 };
const { size: contentSize } = applyContainResizeMode(imageSize, size);

return (
Expand Down
32 changes: 16 additions & 16 deletions example/style.ts
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
import { StyleSheet } from 'react-native';

export const styles = StyleSheet.create({
box: {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these styles are auto-sorted by RN eslint

borderWidth: 5,
flexShrink: 1,
height: 600,
width: 480,
},
container: {
flex: 1,
alignItems: 'center',
flex: 1,
justifyContent: 'center',
padding: 20,
},
contents: {
flex: 1,
alignSelf: 'stretch',
},
box: {
borderWidth: 5,
flexShrink: 1,
height: 600,
width: 480,
flex: 1,
},
img: {
width: '100%',
height: '100%',
resizeMode: 'contain',
width: '100%',
},
marker: {
position: 'absolute',
top: '50%',
left: '50%',
width: 20,
backgroundColor: 'white',
borderRadius: 10,
borderWidth: 2,
height: 20,
left: '50%',
marginLeft: -10,
marginTop: -10,
borderRadius: 10,
backgroundColor: 'white',
borderWidth: 2,
position: 'absolute',
top: '50%',
width: 20,
},
});
135 changes: 76 additions & 59 deletions lib/commonjs/ReactNativeZoomableView.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/commonjs/ReactNativeZoomableView.js.map

Large diffs are not rendered by default.

293 changes: 0 additions & 293 deletions lib/commonjs/ReactNativeZoomableViewWithGestures.js

This file was deleted.

Loading
Loading