Commit 67cfa329 by Giang Tran

fix bug calendar

parent 0ecbd2b7
......@@ -132,8 +132,8 @@ android {
applicationId "com.dcv.invest"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 18
versionName "2.2"
versionCode 19
versionName "2.3"
vectorDrawables.useSupportLibrary = true
}
splits {
......
......@@ -48,18 +48,19 @@ const NewFeed = (props) => {
index = i;
break;
} else {
index = 30 - today.substring(8);
index = data.length - today.substring(8);
}
}
setTimeout(() => {
if (index > 0) {
ListDayRef.current.scrollToIndex({
animated: true,
index: index,
});
}
}, 200);
}
};
const getItemLayout = (data, index) => ({
length: 100,
offset: 50 * index,
......
Markdown is supported
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