Skip to content

Commit

Permalink
Removes unused dependencie from example
Browse files Browse the repository at this point in the history
  • Loading branch information
chagasaway committed Dec 11, 2017
1 parent 25a628e commit 808dbaf
Showing 1 changed file with 20 additions and 25 deletions.
45 changes: 20 additions & 25 deletions example/App.js
Original file line number Diff line number Diff line change
@@ -1,41 +1,36 @@
import React from "react";
import { StyleSheet, View, Dimensions } from "react-native";
import React from 'react';
import { StyleSheet, View, Dimensions } from 'react-native';

import FadingSlides from "react-native-fading-slides";
import FadingSlides from 'react-native-fading-slides';

const { width, height } = Dimensions.get("window");
const { width, height } = Dimensions.get('window');

const slides = [
{
image: require("./img/javascript.png"),
image: require('./img/javascript.png'),
imageWidth: width - width * 0.3,
imageHeight: width - width * 0.3,
title: "JavaScript",
subtitle: "The definitive language",
titleColor: "#fff",
subtitleColor: "yellow"
title: 'JavaScript',
subtitle: 'The definitive language',
titleColor: '#fff',
subtitleColor: 'yellow',
},
{
image: require("./img/react.png"),
image: require('./img/react.png'),
imageWidth: width - width * 0.3,
imageHeight: width - width * 0.3,
title: "ReactJS",
subtitle: "JavaScript coolest library",
titleColor: "#fff",
subtitleColor: "cyan"
}
title: 'ReactJS',
subtitle: 'JavaScript coolest library',
titleColor: '#fff',
subtitleColor: 'cyan',
},
];

export default class App extends React.Component {
render() {
return (
<View style={styles.container}>
<FadingSlides
slides={slides}
fadeDuration={1200}
stillDuration={2000}
height={height}
/>
<FadingSlides slides={slides} fadeDuration={1200} stillDuration={2000} height={height} />
</View>
);
}
Expand All @@ -44,8 +39,8 @@ export default class App extends React.Component {
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: "center",
alignItems: "center",
backgroundColor: "#000"
}
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#000',
},
});

0 comments on commit 808dbaf

Please sign in to comment.