From 976723c40258cc24f3edb45694c6103485ac6ac8 Mon Sep 17 00:00:00 2001 From: Reza_ashrafi Date: Wed, 13 Apr 2022 09:59:40 +0430 Subject: [PATCH] reza fixed otp login inputs font and length && Home items length --- src/screens/Home/components/Blogs.js | 2 +- src/screens/Home/components/Scroll.js | 2 +- src/screens/Home/components/Videos.js | 15 ++++----------- src/screens/Otp/index.js | 14 +++++++------- 4 files changed, 13 insertions(+), 20 deletions(-) diff --git a/src/screens/Home/components/Blogs.js b/src/screens/Home/components/Blogs.js index 8079fa2..40a796d 100644 --- a/src/screens/Home/components/Blogs.js +++ b/src/screens/Home/components/Blogs.js @@ -38,7 +38,7 @@ function Blogs({ blogs, mobile, theme }) { horizontal={true} inverted={true} style={[tw("flex flex-row mt-3 pb-7")]} - data={blogs} + data={blogs.slice(0,7)} renderItem={({ item }) => ( )} diff --git a/src/screens/Home/components/Scroll.js b/src/screens/Home/components/Scroll.js index ca59597..54289f5 100644 --- a/src/screens/Home/components/Scroll.js +++ b/src/screens/Home/components/Scroll.js @@ -50,7 +50,7 @@ function Scroll({ books, mobile }) { { height: mobile ? 245 : 350, direction: "rtl" }, ]} > - {books.map((book, index) => ( + {books.slice(0,14).map((book, index) => ( ))} diff --git a/src/screens/Home/components/Videos.js b/src/screens/Home/components/Videos.js index 903289f..9076763 100644 --- a/src/screens/Home/components/Videos.js +++ b/src/screens/Home/components/Videos.js @@ -1,11 +1,4 @@ -import { - View, - Text, - Image, - Pressable, - FlatList, - Platform, -} from "react-native"; +import { View, Text, Image, Pressable, FlatList, Platform } from "react-native"; import { useNavigation } from "@react-navigation/native"; import tw from "tailwind-rn"; import { connect } from "react-redux"; @@ -24,7 +17,7 @@ function Videos({ videos, grades, mobile, theme }) { return ( - +
(