Skip to content
Draft
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
3 changes: 3 additions & 0 deletions BarcodeCaptureViewsSample/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
android/app/build/
android/.gradle/
Empty file modified BarcodeCaptureViewsSample/_editorconfig
100644 → 100755
Empty file.
Empty file modified BarcodeCaptureViewsSample/android/gradlew
100644 → 100755
Empty file.
Empty file modified BarcodeCaptureViewsSample/app.json
100644 → 100755
Empty file.
16 changes: 14 additions & 2 deletions BarcodeCaptureViewsSample/app/views/FullScreenView.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import {
Alert,
AppState,
BackHandler,
Button,
View
} from 'react-native';

import {
Expand All @@ -28,9 +30,11 @@ import { requestCameraPermissionsIfNeeded } from '../camera-permission-handler';
import { styles } from '../styles';

import licenseKey from '../license';
import { useNavigation } from '@react-navigation/native';

export const FullScreenView = ({ navigation }) => {
export const FullScreenView = ({ }) => {
const viewRef = useRef(null);
const navigation = useNavigation();

const [dataCaptureContext, setDataCaptureContext] = useState(DataCaptureContext.forLicenseKey(licenseKey));
const [camera, setCamera] = useState(null);
Expand Down Expand Up @@ -176,6 +180,14 @@ export const FullScreenView = ({ navigation }) => {
}

return (
<DataCaptureView style={styles.fullScreenView} context={dataCaptureContext} ref={viewRef} />
<View style={{flex: 1}}>
<DataCaptureView style={styles.fullScreenView} context={dataCaptureContext} ref={viewRef} />
<Button
title={"Open split view"}
onPress={() => {
navigation.navigate("sv");
}}
/>
</View>
);
}
Empty file modified BarcodeCaptureViewsSample/babel.config.js
100644 → 100755
Empty file.
Empty file modified BarcodeCaptureViewsSample/index.js
100644 → 100755
Empty file.
Empty file modified BarcodeCaptureViewsSample/metro.config.js
100644 → 100755
Empty file.
16,542 changes: 16,542 additions & 0 deletions BarcodeCaptureViewsSample/package-lock.json

Large diffs are not rendered by default.

11 changes: 7 additions & 4 deletions BarcodeCaptureViewsSample/package.json
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,15 @@
"start": "react-native start"
},
"dependencies": {
"@react-navigation/native": "6.0.16",
"@react-native-community/masked-view": "^0.1.11",
"@react-navigation/native": "^6.0.16",
"@react-navigation/stack": "6.3.7",
"react": "18.1.0",
"react-native": "0.70.6",
"react-native-gesture-handler": "2.8.0",
"react-native-safe-area-context": "4.4.1",
"react-native-gesture-handler": "^2.8.0",
"react-native-reanimated": "^3.0.2",
"react-native-safe-area-context": "^4.4.1",
"react-native-screens": "^3.20.0",
"scandit-react-native-datacapture-barcode": "6.16.2",
"scandit-react-native-datacapture-core": "6.16.2"
},
Expand All @@ -23,4 +26,4 @@
"metro-react-native-babel-preset": "0.66.2",
"react-native-codegen": "0.0.7"
}
}
}