-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.android.js
41 lines (36 loc) · 1.14 KB
/
index.android.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Dimensions
} from 'react-native';
import CCCamera from './cccamera';
export default class newcam extends Component {
render() {
return (
<CCCamera
style={styles.fullscreen}
storagePath={"/"}
projectName={"Project name test"}
projectAddress={"Project address test"}
onClose={(error,button) => {
console.log(`[CCC JS] Invoked callback: [${error}] [${button}]`);
console.log(`[CCC JS] Width = [${Dimensions.get('window').width}] Height = [${Dimensions.get('window').height}]`);
}}
onPhotoAccepted={(filename, imgDims) => {
console.log(`[CCC JS] Photo accepted: ${imgDims[0]}x${imgDims[1]} ${filename}`);
}}
onPhotoTaken={(filename, imgDims) => {
console.log(`[CCC JS] Photo taken: ${imgDims[0]}x${imgDims[1]} ${filename}`);
}}
/>
);
}
}
const styles = StyleSheet.create({
fullscreen: {
width: Dimensions.get('window').width,
height: Dimensions.get('window').height,
},
});
AppRegistry.registerComponent('newcam', () => newcam);