我已按照expo网站上的教程进行设置,以建立深层链接。我所拥有的使我能够
- 分享我的应用程序中的内容
- 单击消息中的链接
- 重定向到我的应用程序中的内容
问题是,如果安装了该应用程序,则该链接无效。这就是为什么我要设置通用链接
react-native ios-universal-links react-native-ios expo create-react-native-app
我试图了解如何在React Native中进行签名捕获.我的应用程序是使用create-react-native-app和创建的,Expo我不想弹出应用程序以使此功能正常工作.
是否有可能在webview中包装这样的东西?https://github.com/szimek/signature_pad
我也看过这个项目,https://github.com/RepairShopr/react-native-signature-capture但它要求我弹出应用程序并使用它react-native link.
寻找有关如何实现此功能的任何建议或建议,同时尽可能简化项目(理想情况下,使用create-react-native-app,但如果不可能,有人可以向我解释原因吗?)
我已经create-react-native-app按照本react机文档中所述进行了设置。proj根据文档,如果我的项目名称为,则要运行的命令应为:
create-react-native-app proj
cd proj
npm start
Run Code Online (Sandbox Code Playgroud)
但是,当我运行时create-react-native-app,我得到一个菜单来选择一个空白模板或带有标签的模板。而不是npm启动,它说要使用expo start。与文档相比,为什么会得到不同的输出?
我需要有关expo xde的帮助.创建项目后,当我扫描QR码时,它给出了以下错误:
there was a problem loading the experience. It looks like you may be using a LAN url.
Make sure your device is on same network as server or try using a tunnel
exp://*.*.*.*:19000
Error Code: NETWORK_ERROR
Code: -1004
Run Code Online (Sandbox Code Playgroud)
我的移动设备与我的笔记本电脑位于同一网络上.我正在使用:
OS: window 10
Node Version: 8.9.4
NPM Version: 4.6.1
Run Code Online (Sandbox Code Playgroud)
它适用于隧道连接,但有点慢.
我在Windows 10和Ubuntu 16.04上尝试过它.在这两种情况下,Hot Reload仅适用于jsx中的更改,但不能用于更改javascript中的变量或函数或其他内容.热重新加载已启用.实时重新加载已禁用.当我在Visual Studio代码编辑器中保存更改时,虚拟设备(android studio)重新加载,但更改不存在.在EXPO App中的物理设备上也是如此.
首先,我没有安装守望者.Hot Relaod无法正常工作.安装后,Hot Reload也不能正常工作.
我使用create-react-native-app启动应用程序.它没有被驱逐出境.
的package.json:
{
"name": "NativeReduxSaga",
"version": "0.1.0",
"private": true,
"devDependencies": {
"jest-expo": "25.0.0",
"react-native-debugger-open": "^0.3.17",
"react-native-scripts": "1.11.1",
"react-test-renderer": "16.2.0"
},
"main": "./node_modules/react-native-scripts/build/bin/crna-entry.js",
"scripts": {
"start": "react-native-scripts start",
"eject": "react-native-scripts eject",
"android": "react-native-scripts android",
"ios": "react-native-scripts ios",
"test": "node node_modules/jest/bin/jest.js",
"postinstall": "rndebugger-open --expo"
},
"jest": {
"preset": "jest-expo"
},
"dependencies": {
"@redux-offline/redux-offline": "^2.3.2",
"expo": "^25.0.0",
"prop-types": "^15.6.1",
"react": "16.2.0",
"react-native": "0.52.0",
"react-native-autocomplete-input": "^3.5.0",
"react-navigation": "^1.5.2",
"react-redux": "^5.0.7",
"redux": "^3.7.2",
"redux-devtools-extension": "^2.13.2", …Run Code Online (Sandbox Code Playgroud) watchman react-native react-native-android create-react-native-app hot-reload
当我成功安装 create-react-native-app 且没有出现错误时,出现了此警告,当我输入该警告时,终端给了我一个错误或警告,如下所示:An unexpected error was encountered. Please report it as a bug:
有没有人收到此错误代码或类似的代码?请帮助我解决这个问题。
\n\xe2\x9a\xa0\xef\xb8\x8f Before running your app on iOS, make sure you have CocoaPods installed and initialize the project:\n\n cd travel-app-react-native/ios\n npx pod-install\n\noguzhanatalay@Oguzhans-Mac Desktop % cd travel-app-react-native \noguzhanatalay@Oguzhans-Mac travel-app-react-native % npx pod-install\nnpx: installed 1 in 6.118s\nScanning for pods...\n1.10.0\n> pod install\nInstalling unimodules:\n expo-constants@9.2.0 from ../node_modules/expo-constants/ios\n expo-error-recovery@1.3.0 from ../node_modules/expo-error-recovery/ios\n expo-file-system@9.2.0 from ../node_modules/expo-file-system/ios\n expo-font@8.3.0 from ../node_modules/expo-font/ios\n expo-image-loader@1.2.0 from ../node_modules/expo-image-loader/ios\n expo-keep-awake@8.3.0 from ../node_modules/expo-keep-awake/ios\n expo-linear-gradient@8.3.1 from ../node_modules/expo-linear-gradient/ios\n expo-location@9.0.1 from ../node_modules/expo-location/ios\n …Run Code Online (Sandbox Code Playgroud) 如何在不弹出的情况下使用 Expo(默认)为创建 React Native App (CRNA) 的组件、Redux 操作和 Reducers 进行所有测试?
还通过 Expo 使用 Axios、Redux-Thunk 异步操作和 React-Native Maps。
我正在用create-react-native-app(CRNA)为一家公司编写应用程序。最终,它可能会投入生产,但是出于研究的原因,我需要一个可以轻松部署到同事电话(Android和iOS)的工作原型。
由于知识产权,我不允许在任何外部托管平台(Google Play,App Store,Expo托管等)上发布。但是,我确实可以访问可以在公司Intranet外部进行通信的内部服务器。
鉴于此,我想知道是否可以运行npm start这样的方式生成的本地Expo服务器,使其能够接受外部连接(即通过端口转发,代理或VPN)。
密码安全性将是理想的选择,但是如果那是唯一的选择,那么保密就可以了。属于答案的网络安全所涉及的Ofc。
我已经使用create-react-native-app创建了react native项目
我可以看到中有一个sdkVersion属性app.json,但是我想minSdkVersion为该应用指定。
如何指定minSdkVersionin react本机项目?
我正在使用create-react-native-app。我想使用react-native-vector-icons
但它没有在 android 屏幕上显示任何内容(我在 expo 应用程序上查看它)
这是我所做的:
应用程序.js:
const Courses = TabNavigator({
ReactCourses: { screen: ReactCourses },
NativeCourses: { screen: NativeCourses },
}, {
tabBarOptions: {
activeTintColor: '#e91e63',
swipeEnabled: true,
showIcon:true,
},
});
Run Code Online (Sandbox Code Playgroud)
ReactCourses.js:
import Icon from 'react-native-vector-icons/MaterialIcons';
static navigationOptions = {
tabBarLabel: 'React Courses',
tabBarIcon:({ tintColor }) => (
<Icon
name={'home'}
size={26}
style={[styles.icon, {color: tintColor}]} />
)
}
Run Code Online (Sandbox Code Playgroud) android react-native react-navigation expo create-react-native-app
如何分析 react-native 包的大小?应用程序是使用 create-react-native-app 创建的。
react-native ×11
expo ×8
android ×1
deployment ×1
hot-reload ×1
jestjs ×1
macos ×1
npm ×1
redux ×1
signaturepad ×1
watchman ×1