Expo是一个开源和免费的平台,它允许Web开发人员通过JavaScript编写一次,构建真正适用于iOS和Android的本机应用程序。在有关开发Expo项目和使用XDE和exp等Expo开发工具的问题上使用Expo标签。
import { useState } from "react"; import { Text, View, Image, TextInput, ScrollView } from "react-native"; import InputField from "../../Components/InputField"; import Fontisto from "@expo/vector-icons/Fontisto"; // import { Image } from "expo-image"; export default function Login() { let [form, setForm] = useState({ email: "", password: "", }); return ( <ScrollView contentContainerStyle={{ justifyContent: "flex-end", height: "100%", }} className="flex-1 bg-white " > <Image source={require("../../assets/images/login.png")} className="w-full h-64 my-10" /> <View className="border shadow-sm rounded-t-[40px] bg-blue-500 p-4 pb-64"> <Text id="title" className="text-center text-xl font-bold"> Login </Text> {/* <View className="flex flex-row w-full justify-center items-center rounded-xl my-2 gap-2 bg-white"> <View className="px-4"> <Fontisto name="email" size={26} color="black" /> </View> <TextInput className="flex-1 rounded-l-none bg-white rounded-md" label="Email" value={form.email} /> </View> */} <InputField onChangeText={(text) => setForm({ ...form, email: text })} Icon={<Fontisto name="email" size={26} color="black" />} label={"Email"} value={form.email} inputType="email-address" /> <InputField onChangeText={(text) => setForm({ ...form, password: text })} Icon={<Fontisto name="email" size={26} color="black" />} label={"Password"} value={form.password} secureTextEntry={true} /> </View> </ScrollView> ); }
能够在Android Mobile和Tablet Emulator上运行和测试EXPO项目的工作流程确切的工作流程。 我有以下设备运行 ADB设备 附加设备列表 模拟器-...
I am working on integration of EXPO for eas updates in my react native cli app (Bare app integration), I am able to generate eas build & the build also works fine, but the issue is - I have PNG images in my app which are not getting loaded, though the SVG's are working fine, I have tried changing metro.config.js by exclusively adding PNG & GIF in the filter but it doesn't work. 我也尝试使用展示图像,但这也行不通。 我当前的Metro.config.js看起来像这样
expo-doctor:如何跳过expo-doctor检查package.json
当我尝试运行NPX expo-doctor@最新时,我会收到以下错误 ✔检查常见问题的博览会配置 ✖检查软件包。 ✔检查依赖项是否应为不应该的软件包
SDK版本 - 此应用程序是使用iOS 12.0 SDK构建的。从2019年3月开始,所有提交给App Store的iOS应用都必须使用iOS 12.1 SDK或更高版本,包括Xcode 10.1或LA ...
我有一个博览会应用程序,我需要运行EAS构建。 在此之前,我需要登录到Expo帐户,但我已经签署了Google,所以我没有密码。 我已经创建了一个新的身份令牌...
如何将环境变量传递给博览会的大师? 我在博览会环境中使用大师建立端到端(E2E)工作流程。以下命令在我的本地开发环境中非常有效: 大师测试-E app_id = myAppid 和我的
maestro
Expo无法使用HTTP调用将NODEJS服务器固定到Nodejs服务器
因此,我一直在尝试将我的本地node.js服务器与我的expo应用程序连接,并且由于某种原因,当试图调用我的node.js server时,请使用Expo应用程序,但如果我运行Expo应用程序在网上,...
ExpoReact-native:如何轻松切换我的应用程序的配色方案?
我知道,当我将设备的主题从光到黑暗或从黑暗转换为光线时,应用程序的主题会发生变化。但是,我正在寻找一种以编程方式完成同样事情的简单方法:您看到,...
我在使用KeyboardAvoidingView时在我的React本机应用中遇到一个闪烁的问题。 当我退出输入字段和WAVESVG组件闪烁时,就会发生问题。
我已经找到了这个问题的解决方案...在app.json文件中 android": { "softwareKeyboardLayoutMode": "pan", } 没有闪烁的 打开键盘时,我正遇到小型Android设备上的闪烁问题。问题之所以发生,是因为我已经将keyboardAvoidingView的行为设置为“高度”。 在Android中,当使用行为=“高度”时,键盘会动态地调整屏幕大小,这可能会导致与布局的冲突,从而导致闪烁。屏幕高度与键盘一起调整,创建不稳定的UI体验。 要解决此问题,我将行为设置为iOS和Android的“填充”: <KeyboardAvoidingView behavior={'padding'} style={{ flex: 1 }} > 确保出现键盘时,仅应用必要的填充而不是调整屏幕大小,以防止闪烁并改善整体用户体验。 该解决方案在Android设备上非常适合我! 🚀
crollview in React Native在设置高度时不滚动100%
该滚动在iOS上起作用,但在Android设备上不起作用。 我将SafeArea高度和内容容器设置为scrollview,并为图像设置高度,并在此处使用本机风。
Path别名在没有明确 /索引的情况下无法正确解决 typecript中的路径别名分辨率 在使用打字稿中使用路径别名时,我正在遇到问题。 当我不明确地导入一个模块时,例如: 导入{颜色}
我在使用Typescript中使用路径别名时会遇到问题。