Commit 67cfa329 by Giang Tran

fix bug calendar

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