Skip to content
Open
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
4 changes: 4 additions & 0 deletions ()
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"image": "mcr.microsoft.com/devcontainers/universal:2",
"features": {}
}
37 changes: 0 additions & 37 deletions .circleci/config.yml

This file was deleted.

8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
if: "!contains(github.event.head_commit.message, '[skip ci]')"

steps:
- name: Checkout project
uses: actions/checkout@v1
uses: actions/checkout@v3

- name: Specify node version
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: 12
node-version: 16

- name: Install node_modules
run:
Expand Down
6 changes: 3 additions & 3 deletions example/ExpoExample/.expo-shared/assets.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"f9155ac790fd02fadcdeca367b02581c04a353aa6d5aa84409a59f6804c87acd": true,
"89ed26367cdb9b771858e026f2eb95bfdb90e5ae943e716575327ec325f39c44": true
}
"12bb71342c6255bbf50437ec8f4441c083f47cdb74bd89160c15e4f43e52a1cb": true,
"40b842e832070c58deac6aa9e08fa459302ee3f9da492c7e77d93d2fbf4a56fd": true
}
9 changes: 6 additions & 3 deletions example/ExpoExample/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
node_modules/**/*
.expo/*
node_modules/
.expo/
dist/
npm-debug.*
*.jks
*.p8
Expand All @@ -8,4 +9,6 @@ npm-debug.*
*.mobileprovision
*.orig.*
web-build/
web-report/

# macOS
.DS_Store
1 change: 0 additions & 1 deletion example/ExpoExample/.watchmanconfig

This file was deleted.

9 changes: 3 additions & 6 deletions example/ExpoExample/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,14 @@ export default function App() {
flex: 1,
backgroundColor: 'transparent',
flexDirection: 'row',
}}
>
}}>
<TouchableOpacity
style={{
flex: 0.1,
alignSelf: 'flex-end',
alignItems: 'center',
}}
onPress={toggleFacing}
>
onPress={toggleFacing}>
<Text style={{ fontSize: 18, marginBottom: 10, color: 'white' }}>
Flip
</Text>
Expand All @@ -59,8 +57,7 @@ export default function App() {
} catch (e) {
console.warn(e);
}
}}
>
}}>
<Text style={{ fontSize: 18, marginBottom: 10, color: 'white' }}>
Record
</Text>
Expand Down
21 changes: 12 additions & 9 deletions example/ExpoExample/app.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
{
"expo": {
"name": "ReactNativeCameraHooksExample",
"name": "ExpoExample",
"slug": "ExpoExample",
"privacy": "public",
"sdkVersion": "34.0.0",
"platforms": [
"ios",
"android",
"web"
],
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/icon.png",
"userInterfaceStyle": "light",
"splash": {
"image": "./assets/splash.png",
"resizeMode": "contain",
Expand All @@ -25,6 +19,15 @@
],
"ios": {
"supportsTablet": true
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#FFFFFF"
}
},
"web": {
"favicon": "./assets/favicon.png"
}
}
}
}
Binary file added example/ExpoExample/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/ExpoExample/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 modified example/ExpoExample/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 modified example/ExpoExample/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.
27 changes: 14 additions & 13 deletions example/ExpoExample/package.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,27 @@
{
"name": "expoexample",
"version": "1.0.0",
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web",
"eject": "expo eject"
"web": "expo start --web"
},
"dependencies": {
"expo": "^34.0.1",
"expo-camera": "^6.0.0",
"react": "16.8.3",
"react-dom": "^16.8.6",
"react-native": "https://github.com/expo/react-native/archive/sdk-34.0.0.tar.gz",
"react-native-camera-hooks": "^0.1.0",
"react-native-web": "^0.11.4"
"@types/react": "~18.0.0",
"@types/react-native": "~0.69.1",
"expo": "~46.0.13",
"expo-camera": "~12.3.0",
"expo-permissions": "~13.2.0",
"expo-status-bar": "~1.4.0",
"react": "18.0.0",
"react-native": "0.69.6",
"react-native-camera-hooks": "../../",
"typescript": "^4.6.3"
},
"devDependencies": {
"@types/react": "^16.8.23",
"@types/react-native": "^0.57.65",
"babel-preset-expo": "^6.0.0",
"typescript": "^3.4.5"
"@babel/core": "^7.12.9"
},
"private": true
}
11 changes: 2 additions & 9 deletions example/ExpoExample/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
{
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"jsx": "react-native",
"lib": ["dom", "esnext"],
"moduleResolution": "node",
"noEmit": true,
"skipLibCheck": true,
"resolveJsonModule": true
}
"compilerOptions": {},
"extends": "expo/tsconfig.base"
}
Loading