I need to use slice() method in my FlatList data but when I use it like below it doesn\'t work.
slice()