forked from nathvarun/React-Native-Layout-Tutorial-Series
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
81 additions
and
0 deletions.
There are no files selected for viewing
45 changes: 45 additions & 0 deletions
45
Project Files/14. Apple App of the day/#2. Opening Animation/App.js
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,45 @@ | ||
import React from 'react'; | ||
import { StyleSheet, Text, View, ScrollView, Image, TouchableWithoutFeedback, Animated, Dimensions, SafeAreaView } from 'react-native'; | ||
|
||
let SCREEN_WIDTH = Dimensions.get('window').width | ||
let SCREEN_HEIGHT = Dimensions.get('window').height | ||
var images = [ | ||
{ id: 1, src: require('./assets/1.jpg') }, | ||
{ id: 2, src: require('./assets/2.jpg') }, | ||
{ id: 3, src: require('./assets/3.jpg') }, | ||
{ id: 4, src: require('./assets/4.jpg') }, | ||
|
||
] | ||
|
||
export default class App extends React.Component { | ||
render() { | ||
return ( | ||
<SafeAreaView style={{ flex: 1 }}> | ||
<ScrollView style={{ flex: 1 }}> | ||
{images.map(image => { | ||
return ( | ||
<TouchableWithoutFeedback key={image.id}> | ||
<Animated.View | ||
style={{ height: SCREEN_HEIGHT - 150, width: SCREEN_WIDTH, padding: 15 }} | ||
> | ||
<Image source={image.src} | ||
style={{ flex: 1, height: null, width: null, resizeMode: 'cover', borderRadius: 20 }} | ||
/> | ||
</Animated.View> | ||
</TouchableWithoutFeedback> | ||
) | ||
})} | ||
</ScrollView> | ||
</SafeAreaView> | ||
); | ||
} | ||
} | ||
|
||
const styles = StyleSheet.create({ | ||
container: { | ||
flex: 1, | ||
backgroundColor: '#fff', | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
}, | ||
}); |
27 changes: 27 additions & 0 deletions
27
Project Files/14. Apple App of the day/#2. Opening Animation/app.json
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,27 @@ | ||
{ | ||
"expo": { | ||
"name": "apple-app-of-the-day-youtube", | ||
"description": "This project is really great.", | ||
"slug": "apple-app-of-the-day-youtube", | ||
"privacy": "public", | ||
"sdkVersion": "28.0.0", | ||
"platforms": ["ios", "android"], | ||
"version": "1.0.0", | ||
"orientation": "portrait", | ||
"icon": "./assets/icon.png", | ||
"splash": { | ||
"image": "./assets/splash.png", | ||
"resizeMode": "contain", | ||
"backgroundColor": "#ffffff" | ||
}, | ||
"updates": { | ||
"fallbackToCacheTimeout": 0 | ||
}, | ||
"assetBundlePatterns": [ | ||
"**/*" | ||
], | ||
"ios": { | ||
"supportsTablet": true | ||
} | ||
} | ||
} |
Binary file added
BIN
+187 KB
Project Files/14. Apple App of the day/#2. Opening Animation/assets/1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+136 KB
Project Files/14. Apple App of the day/#2. Opening Animation/assets/2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+219 KB
Project Files/14. Apple App of the day/#2. Opening Animation/assets/3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+181 KB
Project Files/14. Apple App of the day/#2. Opening Animation/assets/4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.91 KB
Project Files/14. Apple App of the day/#2. Opening Animation/assets/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+7.01 KB
Project Files/14. Apple App of the day/#2. Opening Animation/assets/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions
9
Project Files/14. Apple App of the day/#2. Opening Animation/package.json
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 @@ | ||
{ | ||
"main": "node_modules/expo/AppEntry.js", | ||
"private": true, | ||
"dependencies": { | ||
"expo": "^28.0.0", | ||
"react": "16.3.1", | ||
"react-native": "https://github.com/expo/react-native/archive/sdk-28.0.0.tar.gz" | ||
} | ||
} |