-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/15' of github.com:Anyline/anyline-ocr-react-nat…
…ive-module into release/15
- Loading branch information
Showing
39 changed files
with
338 additions
and
3,566 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module.exports = { | ||
root: true, | ||
extends: '@react-native-community', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = { | ||
bracketSpacing: false, | ||
jsxBracketSameLine: true, | ||
singleQuote: true, | ||
trailingComma: 'all', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"name": "anyline-react-native-example-app", | ||
"displayName": "anyline-react-native-example-app" | ||
"name": "RNExampleApp", | ||
"displayName": "RNExampleApp" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module.exports = { | ||
presets: ["module:metro-react-native-babel-preset"] | ||
} | ||
presets: ['module:metro-react-native-babel-preset'], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,9 @@ | ||
import './src'; | ||
/** | ||
* @format | ||
*/ | ||
|
||
import {AppRegistry} from 'react-native'; | ||
import App from './src'; | ||
import {name as appName} from './app.json'; | ||
|
||
AppRegistry.registerComponent(appName, () => App); |
9 changes: 9 additions & 0 deletions
9
example/RNExampleApp/ios/EmptySwiftFileToFixLinking.swift .swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// | ||
// EmptySwiftFileToFixLinking.swift .swift | ||
// RNExampleApp | ||
// | ||
// Created by AmirAnsari on 25.10.19. | ||
// Copyright © 2019 Facebook. All rights reserved. | ||
// | ||
|
||
import Foundation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,41 @@ | ||
project 'RNExampleApp.xcodeproj' | ||
platform :ios, '10.0' | ||
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' | ||
|
||
target 'RNExampleApp' do | ||
pod 'React', :path => '../node_modules/react-native', :subspecs => [ | ||
'DevSupport', | ||
'RCTNetwork', | ||
] | ||
pod 'AnylineReact', path: '../node_modules/anyline-ocr-react-native-module/ios' | ||
pod 'yoga', :path => '../node_modules/react-native/ReactCommon/Yoga' | ||
pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec' | ||
end | ||
|
||
post_install do |installer| | ||
installer.pods_project.targets.each do |target| | ||
# Pods for RNExampleApp | ||
pod 'FBLazyVector', :path => "../node_modules/react-native/Libraries/FBLazyVector" | ||
pod 'FBReactNativeSpec', :path => "../node_modules/react-native/Libraries/FBReactNativeSpec" | ||
pod 'RCTRequired', :path => "../node_modules/react-native/Libraries/RCTRequired" | ||
pod 'RCTTypeSafety', :path => "../node_modules/react-native/Libraries/TypeSafety" | ||
pod 'React', :path => '../node_modules/react-native/' | ||
pod 'React-Core', :path => '../node_modules/react-native/' | ||
pod 'React-CoreModules', :path => '../node_modules/react-native/React/CoreModules' | ||
pod 'React-Core/DevSupport', :path => '../node_modules/react-native/' | ||
pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS' | ||
pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation' | ||
pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob' | ||
pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image' | ||
pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS' | ||
pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network' | ||
pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings' | ||
pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text' | ||
pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration' | ||
pod 'React-Core/RCTWebSocket', :path => '../node_modules/react-native/' | ||
|
||
# The following is needed to ensure the "archive" step works in XCode. | ||
# It removes React & Yoga from the Pods project, as it is already included in the main project. | ||
# Without this, you'd see errors when you archive like: | ||
# "Multiple commands produce ... libReact.a" | ||
# "Multiple commands produce ... libyoga.a" | ||
pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact' | ||
pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi' | ||
pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor' | ||
pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector' | ||
pod 'ReactCommon/jscallinvoker', :path => "../node_modules/react-native/ReactCommon" | ||
pod 'ReactCommon/turbomodule/core', :path => "../node_modules/react-native/ReactCommon" | ||
pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga' | ||
|
||
targets_to_ignore = %w(yoga React) | ||
if targets_to_ignore.include? target.name | ||
target.remove_from_project | ||
end | ||
pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec' | ||
pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec' | ||
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec' | ||
|
||
pod 'AnylineReact', path: '../node_modules/anyline-ocr-react-native-module/ios' | ||
|
||
end | ||
end | ||
use_native_modules! | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// | ||
// Use this file to import your target's public headers that you would like to expose to Swift. | ||
// | ||
|
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
example/RNExampleApp/ios/RNExampleApp-tvOSTests/Info.plist
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.