React Native ScrollView не прокручивается в Интернете (отлично работает на Expo Go)CSS

Разбираемся в CSS
Ответить
Anonymous
 React Native ScrollView не прокручивается в Интернете (отлично работает на Expo Go)

Сообщение Anonymous »

Я не знаю, почему, даже если у меня есть ScrollView в моем index.tsx и я добавил к нему несколько стилей, например: overflowY: 'scroll'. На expoGo все работает корректно, а в сети нет.
Вот упрощенный Index.tsx:
// index.tsx
import HeroSection from "@/sections/HeroSection";
import { Platform, ScrollView, Text } from "react-native";

export default function Index() {
return (


Some text...
Some text...
Some text...
Some text...

);
}

Вот стили для HereSection.tsx. Может это что-то ломает?
const styles = StyleSheet.create({
gradient: {
width: "100%",
},
heroContainer: {
alignItems: isPlatformWeb ? "flex-start" : "center",
width: "100%",
marginLeft: isPlatformWeb ? 90 : 0,
paddingVertical: isPlatformWeb ? 245 : 70,
},
buttonsContainer: {
flexDirection: "row",
gap: 24,
},
mainText: {
fontFamily: "Karla_500Medium",
fontSize: isPlatformWeb ? 90 : 30,
fontWeight: "900",
maxWidth: isPlatformWeb ? "40%" : "100%",
textAlign: isPlatformWeb ? "left" : "center",
},
secondText: {
paddingTop: isPlatformWeb ? 30 : 10,
fontFamily: "Karla_400Regular",
fontSize: isPlatformWeb ? 28 : 14,
lineHeight: isPlatformWeb ? 32 : 14,
maxWidth: isPlatformWeb ? "40%" : "85%",
textAlign: isPlatformWeb ? "left" : "center",
},
});


Подробнее здесь: https://stackoverflow.com/questions/797 ... on-expo-go
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «CSS»