This file contains hidden or 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
| Generating Pods project | |
| - Creating Pods project | |
| - Adding source files to Pods project | |
| - Adding frameworks to Pods project | |
| - Adding libraries to Pods project | |
| - Adding resources to Pods project | |
| - Adding development pod helper files to Pods project | |
| - Linking headers | |
| - Installing targets | |
| - Installing target `Amplitude-iOS` iOS 6.0 |
This file contains hidden or 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
| platform :ios, '10.0' | |
| require_relative '../node_modules/react-native-unimodules/cocoapods.rb' | |
| # don't just copy and paste this, notice that the target names should align with what is already in your Podfile | |
| target 'YourAppNameHere' do | |
| pod 'React', :path => '../node_modules/react-native', :subspecs => [ | |
| 'Core', | |
| 'CxxBridge', | |
| 'DevSupport', |
This file contains hidden or 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
| export * from "./expo-nativescript-adapter.common"; | |
| export const NativeModulesProxy = {}; | |
| const provider = EXModuleRegistryProvider.new(); | |
| const moduleRegistry = provider.moduleRegistryForExperienceId( | |
| "@sjchmiela/test" | |
| ); | |
| const exportedModules = moduleRegistry.getAllExportedModules(); | |
| for (let i = 0; i < exportedModules.count; i++) { |
This file contains hidden or 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
| @@ -1,7 +1,8 @@ | |
| { | |
| "compilerOptions": { | |
| - "target": "esnext", | |
| - "lib": ["dom", "esnext"], | |
| + "target": "es5", | |
| + "module": "commonjs", | |
| + "lib": ["dom", "es6"], | |
| "jsx": "react-native", | |
| "moduleResolution": "node", |
This file contains hidden or 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
| @@ -145,7 +145,8 @@ static const NSNumber *trueValue; | |
| NSInvocation *invocation = [NSInvocation invocationWithMethodSignature:methodSignature]; | |
| [invocation setTarget:self]; | |
| [invocation setSelector:selector]; | |
| - [arguments enumerateObjectsUsingBlock:^(id _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) { | |
| + NSArray<id> *newArguments = [arguments copy]; | |
| + [newArguments enumerateObjectsUsingBlock:^(id _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) { | |
| if (obj != [NSNull null]) { | |
| [invocation setArgument:&obj atIndex:(2 + idx)]; | |
| } |
This file contains hidden or 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
| source 'https://github.com/CocoaPods/Specs.git' | |
| platform :ios, '9.0' | |
| target 'TestTheDetach' do | |
| pod 'ExpoKit', | |
| :git => "http://github.com/expo/expo.git", | |
| :tag => "ios/2.7.6", | |
| :subspecs => [ | |
| "Core" | |
| ], |
This file contains hidden or 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
| // Gradle script for detached apps. | |
| import org.apache.tools.ant.taskdefs.condition.Os | |
| void runBefore(String dependentTaskName, Task task) { | |
| Task dependentTask = tasks.findByPath(dependentTaskName); | |
| if (dependentTask != null) { | |
| dependentTask.dependsOn task | |
| } | |
| } |
This file contains hidden or 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
| package host.exp.exponent; | |
| import com.facebook.react.bridge.NativeModule; | |
| import com.facebook.react.bridge.ReactApplicationContext; | |
| import org.json.JSONObject; | |
| import java.util.List; | |
| import java.util.Map; |
This file contains hidden or 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
| <Text> | |
| <Text style={{ fontWeight: 'bold' }}> | |
| {this.props.photo.device.name} | |
| </Text> | |
| {' '} | |
| {this.props.photo.description} | |
| </Text> |
This file contains hidden or 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
| handleCameraTypeChange = () => | |
| this.setState(({ cameraType }) => ({ | |
| cameraType: cameraType === Camera.Constants.Type.back | |
| ? Camera.Constants.Type.front | |
| : Camera.Constants.Type.back, | |
| })); |