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
@@ -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 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 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 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 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 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 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, | |
})); |
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
renderCamera = () => ( | |
<Camera | |
ref={this.handleCameraRef} | |
style={styles.camera}> | |
// ... | |
</Camera> | |
); |
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
<View | |
style={{ | |
padding: 10, | |
alignItems: 'center', | |
flexDirection: 'row', | |
justifyContent: 'space-between', | |
}}> | |
<Text>{this.props.photo.device.name}</Text> | |
<TouchableOpacity | |
onPress={() => |
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
render() { | |
return ( | |
<View> | |
<TapGestureHandler | |
numberOfTaps={2} | |
onActivated={this.handlePictureDoubleTapped}> | |
<View> | |
<Image | |
style={styles.mainImage} | |
source={{ uri: this.props.photo.image_url }} |