Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/ChildItem.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import {TouchableOpacity, Image, StyleSheet} from 'react-native';

export default (ChildItem = ({
const ChildItem = ({
item,
style,
onPress,
Expand All @@ -18,7 +18,7 @@ export default (ChildItem = ({
/>
</TouchableOpacity>
);
});
};

const styles = StyleSheet.create({
container: {},
Expand All @@ -27,3 +27,5 @@ const styles = StyleSheet.create({
resizeMode: 'stretch',
},
});

export default ChildItem;
6 changes: 4 additions & 2 deletions src/Indicator.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import {View, StyleSheet} from 'react-native';

export default (Indicator = ({
const Indicator = ({
itemCount,
currentIndex,
indicatorStyle,
Expand All @@ -22,7 +22,7 @@ export default (Indicator = ({
)}
</View>
);
});
};

export const renderIndicator = (
count,
Expand Down Expand Up @@ -76,3 +76,5 @@ const styles = StyleSheet.create({
active: {},
inactive: {},
});

export default Indicator;