make sure multiple default notes are not created

This commit is contained in:
ammarahm-ed
2021-04-06 13:37:32 +05:00
parent eb4bf5fa3f
commit 24d29d83e9
2 changed files with 5 additions and 2 deletions

View File

@@ -245,7 +245,7 @@ const SplashScreen = () => {
width={isNext ? null : '100%'}
onPress={async () => {
if (isNext) {
carouselRef.current?.snapToNext();
carouselRef.current?.snapToItem(currentIndex + 1,true,true);
currentIndex++;
if (currentIndex === 4) {
setIsNext(false);