Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2.0.1 #34

Merged
merged 14 commits into from
May 17, 2022
Merged
Show file tree
Hide file tree
Changes from all 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
77 changes: 54 additions & 23 deletions README.md

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions example/.expo-shared/assets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"12bb71342c6255bbf50437ec8f4441c083f47cdb74bd89160c15e4f43e52a1cb": true,
"40b842e832070c58deac6aa9e08fa459302ee3f9da492c7e77d93d2fbf4a56fd": true
}
14 changes: 14 additions & 0 deletions example/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
node_modules/
.expo/
dist/
npm-debug.*
*.jks
*.p8
*.p12
*.key
*.mobileprovision
*.orig.*
web-build/

# macOS
.DS_Store
20 changes: 16 additions & 4 deletions example/src/App.tsx → example/App.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';

import { StyleSheet, View, Text, Image, Animated, Button } from 'react-native';
// @ts-ignore
import { ReactNativeZoomableView } from '@openspacelabs/react-native-zoomable-view';

export default function App() {
Expand Down Expand Up @@ -64,9 +64,21 @@ const styles = StyleSheet.create({
justifyContent: 'center',
padding: 20,
},
contents: { flex: 1, alignSelf: 'stretch' },
box: { borderWidth: 5, flexShrink: 1, height: 500, width: 310 },
img: { width: '100%', height: '100%', resizeMode: 'contain' },
contents: {
flex: 1,
alignSelf: 'stretch',
},
box: {
borderWidth: 5,
flexShrink: 1,
height: 500,
width: 310,
},
img: {
width: '100%',
height: '100%',
resizeMode: 'contain',
},
marker: {
position: 'absolute',
top: '50%',
Expand Down
34 changes: 22 additions & 12 deletions example/app.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,32 @@
{
"name": "@openspacelabs/react-native-zoomable-view-example",
"displayName": "ReactNativeZoomableView Example",
"expo": {
"name": "@openspacelabs/react-native-zoomable-view-example",
"slug": "openspacelabs-react-native-zoomable-view-example",
"description": "Example app for @openspacelabs/react-native-zoomable-view",
"privacy": "public",
"version": "1.0.0",
"platforms": [
"ios",
"android",
"web"
"version": "2.0.1",
"orientation": "portrait",
"userInterfaceStyle": "light",
"splash": {
"image": "./assets/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": [
"**/*"
],
"ios": {
"supportsTablet": true
},
"assetBundlePatterns": [
"**/*"
]
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#FFFFFF"
}
},
"web": {
"favicon": "./assets/favicon.png"
}
}
}
Binary file added example/assets/adaptive-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added example/assets/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added example/assets/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added example/assets/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 0 additions & 8 deletions example/index.js

This file was deleted.

2 changes: 1 addition & 1 deletion example/metro.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const path = require('path');
const blacklist = require('metro-config/src/defaults/blacklist');
const blacklist = require('metro-config/src/defaults/exclusionList');
const escape = require('escape-string-regexp');
const pak = require('../package.json');

Expand Down
29 changes: 11 additions & 18 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,24 @@
"description": "Example app for @openspacelabs/react-native-zoomable-view",
"version": "0.0.1",
"private": true,
"main": "index",
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web",
"start": "expo start",
"test": "jest"
"web": "expo start --web"
},
"dependencies": {
"expo": "^40.0.0",
"expo-splash-screen": "~0.8.1",
"react": "16.13.1",
"react-dom": "16.13.1",
"react-native": "0.63.4",
"react-native-unimodules": "~0.12.0",
"react-native-web": "~0.14.9"
"expo": "~45.0.0",
"expo-status-bar": "~1.3.0",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-native": "0.68.2",
"react-native-web": "0.17.7"
},
"devDependencies": {
"@babel/core": "~7.12.10",
"@babel/runtime": "^7.9.6",
"@types/react": "~16.9.35",
"@types/react-native": "~0.63.2",
"@babel/core": "^7.12.9",
"babel-plugin-module-resolver": "^4.0.0",
"babel-preset-expo": "8.3.0",
"expo-cli": "^4.0.13",
"typescript": "~4.0.0"
"typescript": "~4.3.5"
}
}
7 changes: 5 additions & 2 deletions example/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@
"compilerOptions": {
"jsx": "react-native",
"target": "esnext",
"lib": ["esnext"],
"lib": [
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"noEmit": true,
"allowSyntheticDefaultImports": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"moduleResolution": "node"
}
},
"extends": "expo/tsconfig.base"
}
Loading