Skip to content

Commit

Permalink
import
Browse files Browse the repository at this point in the history
import
  • Loading branch information
universegalaxy1112 committed Mar 22, 2021
1 parent e6df23a commit e01907b
Show file tree
Hide file tree
Showing 190 changed files with 421,412 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .buckconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

[android]
target = Google Inc.:Google APIs:23

[maven_repositories]
central = https://repo1.maven.org/maven2
69 changes: 69 additions & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
[ignore]
; We fork some components by platform
.*/*[.]android.js

; Ignore "BUCK" generated dirs
<PROJECT_ROOT>/\.buckd/

; Ignore unexpected extra "@providesModule"
.*/node_modules/.*/node_modules/fbjs/.*

; Ignore duplicate module providers
; For RN Apps installed via npm, "Libraries" folder is inside
; "node_modules/react-native" but in the source repo it is in the root
.*/Libraries/react-native/React.js

; Ignore polyfills
.*/Libraries/polyfills/.*

; Ignore metro
.*/node_modules/metro/.*

[include]

[libs]
node_modules/react-native/Libraries/react-native/react-native-interface.js
node_modules/react-native/flow/

[options]
emoji=true

esproposal.optional_chaining=enable
esproposal.nullish_coalescing=enable

module.system=haste
module.system.haste.use_name_reducers=true
# get basename
module.system.haste.name_reducers='^.*/\([a-zA-Z0-9$_.-]+\.js\(\.flow\)?\)$' -> '\1'
# strip .js or .js.flow suffix
module.system.haste.name_reducers='^\(.*\)\.js\(\.flow\)?$' -> '\1'
# strip .ios suffix
module.system.haste.name_reducers='^\(.*\)\.ios$' -> '\1'
module.system.haste.name_reducers='^\(.*\)\.android$' -> '\1'
module.system.haste.name_reducers='^\(.*\)\.native$' -> '\1'
module.system.haste.paths.blacklist=.*/__tests__/.*
module.system.haste.paths.blacklist=.*/__mocks__/.*
module.system.haste.paths.blacklist=<PROJECT_ROOT>/node_modules/react-native/Libraries/Animated/src/polyfills/.*
module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/Libraries/.*

munge_underscores=true

module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub'

module.file_ext=.js
module.file_ext=.jsx
module.file_ext=.json
module.file_ext=.native.js

suppress_type=$FlowIssue
suppress_type=$FlowFixMe
suppress_type=$FlowFixMeProps
suppress_type=$FlowFixMeState

suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError

[version]
^0.92.0
3 changes: 1 addition & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# Auto detect text files and perform LF normalization
* text=auto
*.pbxproj -text
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,5 @@ ios/tmp.xcconfig

# vscode
.vscode/*

ios/opencv2.framework/Versions/A
1 change: 1 addition & 0 deletions .watchmanconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
53 changes: 53 additions & 0 deletions App.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
import React, {Component} from 'react';
import {Platform, View, NativeModules, Dimensions, Text} from 'react-native';
import { Container } from 'native-base';
import ArucoIOS from './ArucoView';

export default class App extends Component {

componentWillMount(){
// Aruco.emitter.addListener('CAMERA_FRAME_EVENT', ({markers})=>{
// this.setState(()=>({markerList: markers}))
// });
// ArucoModule.setRNScreenDimensions(
// Dimensions.get("window").width,
// Dimensions.get("window").height
// );
}

render() {
return (
<Container>
<ArucoIOS
style={{flex: 1}}
onArucoDetect={ (result) => {

}}
/>
</Container>
);
}


identifyMarkers = function(){
return this.state.markerList.map(marker=>{
return(
// <View style={this.positionStyle(marker)}>
<Text style={this.positionStyle(marker)}>
{"[" + marker.rnx + ", " + marker.rny + "]"}
</Text>
// </View>
)
})
}

positionStyle = function(marker){
return {
position: 'absolute',
top: marker.rny,
left: marker.rnx,
alignItems: 'center',
}
}
}

9 changes: 9 additions & 0 deletions ArucoNativeModule.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import {NativeModules, NativeEventEmitter} from 'react-native';

const {Aruco} = NativeModules;

const ArucoEmitter = new NativeEventEmitter(Aruco);

export default {
emitter: ArucoEmitter
}
17 changes: 17 additions & 0 deletions ArucoView.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { requireNativeComponent } from 'react-native';
import PropTypes from 'prop-types';
import React from 'react';

class ArucoView extends React.Component {
render() {
return <RNTAruco {...this.props} />;
}
}

ArucoView.propTypes = {

}

var RNTAruco = requireNativeComponent('RNTAruco', ArucoView);

module.exports = ArucoView;
3 changes: 3 additions & 0 deletions VispickCamera.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { NativeModules, requireNativeComponent } from 'react-native'
6 changes: 6 additions & 0 deletions android/.classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8/"/>
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
<classpathentry kind="output" path="bin/default"/>
</classpath>
Loading

0 comments on commit e01907b

Please sign in to comment.