commit 0cdabea91c650d87b23de1c00574f54790cf5ff8
parent 15f5e1476ea24466132c522c0ceed8bb85dc5dc6
Author: Johan Lindskogen <johan.lindskogen@gmail.com>
Date: Sun, 1 Apr 2018 12:13:59 +0200
Set proper keyExtractor and inverted list
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/usecase/buffers/ui/Buffer.tsx b/src/usecase/buffers/ui/Buffer.tsx
@@ -8,6 +8,7 @@ import {
EmitterSubscription
} from "react-native";
import { connect } from "react-redux";
+import * as _ from "lodash";
import AppleEasing from "react-apple-easing";
@@ -58,7 +59,9 @@ class Buffer extends React.Component<Props> {
return (
<FlatList
data={lines}
+ inverted
keyboardDismissMode="interactive"
+ keyExtractor={line => _.last(line.pointers)}
renderItem={({ item }) => (
<BufferLine
line={item}