Commit 83141c8b authored by Matúš Žiak's avatar Matúš Žiak
Browse files

List order changed

parent 1f4ad26d
......@@ -3,7 +3,7 @@ import { FlatList } from "react-native";
import NotificationListItem from "./NotificationListItem";
import NotificationListEmptyItem from "./NotificationListEmptyItem";
export default class NotificationScreen extends PureComponent {
export default class NotificationList extends PureComponent {
_keyExtractor = (item, index) => `notification-${index}`;
_renderItem = ({ item }) => <NotificationListItem item={item} />;
......@@ -16,7 +16,7 @@ export default class NotificationScreen extends PureComponent {
renderItem={this._renderItem}
ItemSeparatorComponent={NotificationListItem.Divider}
ListEmptyComponent={<NotificationListEmptyItem />}
data={this.props.data}
data={this.props.data.sort().reverse()}
/>
);
}
......
......@@ -71,7 +71,7 @@ export default class NotificationInfoScreen extends Component {
type: "feather",
color: "white"
}}
onPress={this._onCallPressed}
onPress={() => alert("Alarm na pobočke bol spustený")}
containerStyle={styles.containerButton}
buttonStyle={styles.callButton}
titleStyle={styles.buttonTitle}
......@@ -84,7 +84,9 @@ export default class NotificationInfoScreen extends Component {
type: "feather",
color: "white"
}}
onPress={this._onCallPressed}
// onPress={this._onCallPressed}
// TODO after video swap back to call
onPress={() => alert("Policajné zložky boli upozornené")}
containerStyle={styles.containerButton}
buttonStyle={styles.callButton}
titleStyle={styles.buttonTitle}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment