Я не знаю, почему, даже если у меня есть 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
React Native ScrollView не прокручивается в Интернете (отлично работает на Expo Go) ⇐ CSS
Разбираемся в CSS
1761084382
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",
},
});
Подробнее здесь: [url]https://stackoverflow.com/questions/79795680/react-native-scrollview-not-scrolling-on-web-works-fine-on-expo-go[/url]
Ответить
1 сообщение
• Страница 1 из 1
Перейти
- Кемерово-IT
- ↳ Javascript
- ↳ C#
- ↳ JAVA
- ↳ Elasticsearch aggregation
- ↳ Python
- ↳ Php
- ↳ Android
- ↳ Html
- ↳ Jquery
- ↳ C++
- ↳ IOS
- ↳ CSS
- ↳ Excel
- ↳ Linux
- ↳ Apache
- ↳ MySql
- Детский мир
- Для души
- ↳ Музыкальные инструменты даром
- ↳ Печатная продукция даром
- Внешняя красота и здоровье
- ↳ Одежда и обувь для взрослых даром
- ↳ Товары для здоровья
- ↳ Физкультура и спорт
- Техника - даром!
- ↳ Автомобилистам
- ↳ Компьютерная техника
- ↳ Плиты: газовые и электрические
- ↳ Холодильники
- ↳ Стиральные машины
- ↳ Телевизоры
- ↳ Телефоны, смартфоны, плашеты
- ↳ Швейные машинки
- ↳ Прочая электроника и техника
- ↳ Фототехника
- Ремонт и интерьер
- ↳ Стройматериалы, инструмент
- ↳ Мебель и предметы интерьера даром
- ↳ Cантехника
- Другие темы
- ↳ Разное даром
- ↳ Давай меняться!
- ↳ Отдам\возьму за копеечку
- ↳ Работа и подработка в Кемерове
- ↳ Давай с тобой поговорим...
Мобильная версия