Skip to content

Instantly share code, notes, and snippets.

@Karniej
Last active August 16, 2018 06:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Karniej/20088e7a545910fd175dc2acb391f475 to your computer and use it in GitHub Desktop.
Save Karniej/20088e7a545910fd175dc2acb391f475 to your computer and use it in GitHub Desktop.
import React from 'react';
import { View, Text, Picker, Platform } from 'react-native';
const styles = {
wrapper: {
justifyContent: 'center', alignItems: 'center', flex: 1
},
title: {
fontSize: 20,
marginBottom: 40
},
shadowTest: {
width: 300,
height: 300,
backgroundColor: '#00d664',
shadowColor: 'black',
shadowOffset: { width: 5, height: 5 },
shadowOpacity: 0.5,
shadowRadius: 10
}
};
class ShadowTest extends React.Component {
render() {
return (
<View style={styles.wrapper}>
<Text style={styles.title}>Shadow Test {Platform.select({ android: 'Android', ios: 'IOS' })}</Text>
<View style={styles.shadowTest} />
</View>
);
}
}
export default ShadowTest;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment