我收到了一个带有情节提要和多个视图控制器的 sdk。在我的 react-native 模块中,我想公开一个方法,该方法将转换到这个故事板并返回结果。我试图遵循这个答案: React-Native iOS - 如何通过按下按钮从 React-Native 视图导航到非 React-Native 视图(本机 iOS 视图控制器)?
我也试过这个代码(但我们无权访问导航控制器):
- (void)openStoryBoard{
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"NAME_OF_THE_STORYBOARD" bundle:nil];
UIViewController *vc = [storyboard instantiateInitialViewController];
[self.navigationController pushViewController:vc animated:true];
}
Run Code Online (Sandbox Code Playgroud)
在 Android 中,我刚刚调用了 StartActivityForResult,但在 ios 中我无法弄清楚。
欢迎提出任何建议。
如何更改使用本机反应构建的苹果应用程序版本。
我从苹果应用商店收到这封电子邮件 -
亲爱的开发者,
我们发现您的应用“APP_NAME”1.0 (1.0.2) 最近交付存在一个或多个问题。请更正以下问题,然后重新上传。
ITMS-90062:此捆绑包无效 - Info.plist 文件中键 CFBundleShortVersionString [1.0] 的值必须包含比先前批准的版本 [1.1] 更高的版本。有关 CFBundleShortVersionString 的更多信息,请访问https://developer.apple.com/documentation/bundleresources/information_property_list/cfbundleshortversionstring
此致,
应用商店团队
在我pod update在ios文件夹内运行之前,应用程序正在运行。在那之后,我开始收到这个错误。
"react": "16.9.0",
"react-native": "0.61.1",
Run Code Online (Sandbox Code Playgroud)
捆绑失败:index.js: /Users/yamankatby/Documents/Projects/plannerscheduler-mobile/index.js: (0 , _helperModuleTransforms.getModuleName) 不是函数
不确定是否有人遇到过这个问题,因为我无法在任何地方查找它,但我看不到 React Native 应用程序的任何日志,因为浏览器控制台告诉我“另一个调试器已经连接”,这是一个不断循环的警告。
Metro bundler 告诉我,我必须在浏览器中查看 javascript 日志。我无法在不调试的情况下处理我的应用程序,任何人都可以帮忙吗?
我在ReactNative上,我正在使用native-base和react-navigation npm.
我得到了这个,我的问题是如何有一个标题,直到按钮"Home",我查看了反应导航的文档,但它并没有真正清除.
像这样(图像是固定的,只是在这里放置一个徽标)
javascript navigation-drawer react-native react-native-android react-native-ios
我正在尝试使用此集成指南将React Native集成到现有的Swift iOS应用程序中:https://facebook.github.io/react-native/docs/integration-with-existing-apps.html.React Native的版本是0.53.0.
我已经成功安装了所有必需的pod,现在尝试构建项目,但总是得到以下编译错误:
错误日志:
While building module 'yoga' imported from ...node_modules/react-native/React/Base/RCTConvert.h:19:
In file included from <module-includes>:1:
In file included from ...ios/Vandebron/Pods/Target Support Files/yoga/yoga-umbrella.h:15:
In file included from ...node_modules/react-native/ReactCommon/yoga/yoga/YGNode.h:13:
...node_modules/react-native/ReactCommon/yoga/yoga/Yoga-internal.h:11:10: fatal error: 'algorithm' file not found
#include <algorithm>
^~~~~~~~~~~
1 error generated.
In file included from ...node_modules/react-native/React/Views/RCTActivityIndicatorViewManager.m:10:
In file included from ...node_modules/react-native/React/Views/RCTActivityIndicatorViewManager.h:10:
In file included from ...node_modules/react-native/React/Views/RCTViewManager.h:13:
...node_modules/react-native/React/Base/RCTConvert.h:19:9: fatal error: could not build module 'yoga'
#import <yoga/Yoga.h
Run Code Online (Sandbox Code Playgroud) 我似乎无法使用pod安装将react-native-maps安装到我的react本机ios项目中.我收到警告Missing dependency target "React"和React/RCTView.h' file not found错误
https://github.com/react-community/react-native-maps/blob/master/docs/installation.md
我认为这是因为use_frameworks!pod文件中的标志.有没有合理的解决方法?
这是我的pod文件
platform :ios, '11.0'
target 'MyCoolApp' do
use_frameworks!
pod 'ViroReact', :path => '../node_modules/react-viro/ios/'
pod 'ViroKit', :path => '../node_modules/react-viro/ios/dist/ViroRenderer/'
# Required by RNFirebase
pod 'Firebase/Core'
pod 'Firebase/Auth'
pod 'Firebase/Firestore'
pod 'Firebase/Messaging'
pod 'Fabric', '~> 1.7.5'
pod 'Crashlytics', '~> 3.10.1'
pod 'Firebase/Database'
pod 'Firebase/RemoteConfig'
pod 'Firebase/Storage'
pod 'Firebase/Performance'
pod 'Firebase/DynamicLinks'
rn_path = '../node_modules/react-native'
rn_maps_path = '../node_modules/react-native-maps'
# See http://facebook.github.io/react-native/docs/integration-with-existing-apps.html#configuring-cocoapods-dependencies
pod 'yoga', path: "#{rn_path}/ReactCommon/yoga/yoga.podspec"
pod 'React', path: rn_path, subspecs: [ …Run Code Online (Sandbox Code Playgroud) 我已经使用 react-native-modal-datetime-picker 在我的 react 应用程序中成功选择了日期和时间,它工作顺利,我想要一个只能选择月份和年份的选择器:
如何添加月份和年份选择器?
我试图找到可以帮助但没有找到任何与我的问题相关的示例和任何教程。
hybrid-mobile-app react-native react-native-android react-native-ios
我正在使用此 Amplify 指南https://aws-amplify.github.io/docs/js/tutorials/building-react-native-apps/#connect-to-your-backend-1并且当我使用创建 API 时“aplify add api”应用程序失败。我正在使用“expo”,我正在使用 IphoneX 进行测试阶段。
我的应用程序代码是
import React, { Component } from 'react';
import { StyleSheet, Text, Button, View, Alert } from 'react-native';
import Amplify, { API } from 'aws-amplify';
import amplify from './aws-exports';
import awsmobile from './aws-exports';
import { withAuthenticator } from 'aws-amplify-react-native';
Amplify.configure(amplify);
Amplify.configure(awsmobile);
state = { apiResponse: null };
class App extends Component {
async getSample() {
const path = "/items"; // you can specify the path
const apiResponse = await …Run Code Online (Sandbox Code Playgroud) 在参考了这个文档可按下文档后,我正在使用可按下作为按钮
现在我想为按钮添加涟漪效果,但它无法正常工作。
<Pressable
android_ripple={{color: 'red', borderless: false}}
style={{backgroundColor: 'blue',borderRadius : 10}}>
<Text style={{alignSelf: 'center'}}>Button</Text>
</Pressable>
Run Code Online (Sandbox Code Playgroud)
如果按钮具有半径,则波纹效果没有边框半径。波纹效果角超出弯曲半径看起来很尴尬。
reactjs react-native react-native-android react-native-ios react-component
react-native ×10
react-native-ios ×10
reactjs ×4
ios ×3
app-store ×1
aws-amplify ×1
cocoapods ×1
javascript ×1