Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
R
react-native-smart-barcode
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
放牛的园子
react-native-smart-barcode
Commits
2bb0bec9
Commit
2bb0bec9
authored
Dec 21, 2016
by
cyqresig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added setClipsToBounds -> YES for BarCodeView,
removed unnecessary Log codes
parent
1e72f2f5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
RCTBarcodeManager.m
ios/RCTBarcode/RCTBarcode/RCTBarcodeManager.m
+4
-3
No files found.
ios/RCTBarcode/RCTBarcode/RCTBarcodeManager.m
View file @
2bb0bec9
...
@@ -41,6 +41,7 @@ RCT_CUSTOM_VIEW_PROPERTY(barCodeTypes, NSArray, RCTBarcode) {
...
@@ -41,6 +41,7 @@ RCT_CUSTOM_VIEW_PROPERTY(barCodeTypes, NSArray, RCTBarcode) {
if
(
!
self
.
barcode
){
if
(
!
self
.
barcode
){
self
.
barcode
=
[[
RCTBarcode
alloc
]
initWithManager
:
self
];
self
.
barcode
=
[[
RCTBarcode
alloc
]
initWithManager
:
self
];
[
self
.
barcode
setClipsToBounds
:
YES
];
}
}
SystemSoundID
beep_sound_id
;
SystemSoundID
beep_sound_id
;
...
@@ -62,7 +63,7 @@ RCT_CUSTOM_VIEW_PROPERTY(barCodeTypes, NSArray, RCTBarcode) {
...
@@ -62,7 +63,7 @@ RCT_CUSTOM_VIEW_PROPERTY(barCodeTypes, NSArray, RCTBarcode) {
-
(
void
)
initializeCaptureSessionInput
:
(
NSString
*
)
type
{
-
(
void
)
initializeCaptureSessionInput
:
(
NSString
*
)
type
{
NSLog
(
@"initializeCaptureSessionInput..."
);
//
NSLog(@"initializeCaptureSessionInput...");
dispatch_async
(
self
.
sessionQueue
,
^
{
dispatch_async
(
self
.
sessionQueue
,
^
{
...
@@ -88,7 +89,7 @@ RCT_CUSTOM_VIEW_PROPERTY(barCodeTypes, NSArray, RCTBarcode) {
...
@@ -88,7 +89,7 @@ RCT_CUSTOM_VIEW_PROPERTY(barCodeTypes, NSArray, RCTBarcode) {
if
([
self
.
session
canAddInput
:
captureDeviceInput
])
{
if
([
self
.
session
canAddInput
:
captureDeviceInput
])
{
NSLog
(
@"self.session canAddInput:captureDeviceInput..."
);
//
NSLog(@"self.session canAddInput:captureDeviceInput...");
[
self
.
session
addInput
:
captureDeviceInput
];
[
self
.
session
addInput
:
captureDeviceInput
];
...
@@ -114,7 +115,7 @@ RCT_EXPORT_METHOD(startSession) {
...
@@ -114,7 +115,7 @@ RCT_EXPORT_METHOD(startSession) {
if
(
self
.
metadataOutput
==
nil
)
{
if
(
self
.
metadataOutput
==
nil
)
{
NSLog
(
@"self.metadataOutput = %@"
,
self
.
metadataOutput
);
//
NSLog(@"self.metadataOutput = %@", self.metadataOutput);
AVCaptureMetadataOutput
*
metadataOutput
=
[[
AVCaptureMetadataOutput
alloc
]
init
];
AVCaptureMetadataOutput
*
metadataOutput
=
[[
AVCaptureMetadataOutput
alloc
]
init
];
self
.
metadataOutput
=
metadataOutput
;
self
.
metadataOutput
=
metadataOutput
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment