升级 react-native 版本后,我得到以下信息。并且未能在模拟器中运行构建
在此之后,我运行了 react-native run-ios 它显示我的所有包都是手动链接的,您需要取消链接所有包。
此外,在更新到最新的 react-native 后,任何人都可以澄清 react-native-config.js 文件是必需的。
我总是打开 app.Xcodeproj 但下面显示我需要打开 app.xcworkspace。任何人都可以澄清这一点吗?
warn The following packages use deprecated "rnpm" config that will stop working from next release:
- react-native-fetch-blob: https://github.com/wkh237/react-native-fetch-blob#readme
- react-native-orientation: https://github.com/yamill/react-native-orientation#readme
- rn-fetch-blob: https://github.com/joltup/rn-fetch-blob#readme
Please notify their maintainers about it. You can find more details at https://github.com/react-native-community/cli/blob/master/docs/configuration.md#migration-guide.
error Could not find the following native modules: BugsnagReactNative, react-native-camera, react-native-cookies, react-native-fast-image, react-native-fetch-blob, RNFS, RNGestureHandler, RNImageCropPicker, react-native-image-picker, RNImageRotate, BVLinearGradient, react-native-orientation, RNShare, RNSVG, RNVectorIcons, RNViewShot, react-native-webview, rn-fetch-blob. Did …Run Code Online (Sandbox Code Playgroud) 我正在使用来自react-native的Textinput。如何将 otp 或代码自动粘贴到文本输入框中。
我正在使用react-native-flatlist网格滚动来自服务器的最大数据并获取并显示在我的屏幕上。但我的应用程序中的滚动并不流畅。
有什么解决办法吗?
滚动屏幕时我也面临着空白。列表消失并在 UI 中显示空白区域。
有什么解决办法吗?
import React, { Component } from 'react';
import {
ActivityIndicator,
Image,
Platform,
StyleSheet,
Text,
FlatList,
Button,
View,
SafeAreaView,
ScrollView,
TouchableOpacity,
PixelRatio,
Dimensions,
StatusBar
} from 'react-native';
import _ from 'lodash';
import ImageCropPicker from 'react-native-image-crop-picker';
import Orientation from 'react-native-orientation';
import FastImage from 'react-native-fast-image';
class MyShowroom extends Component {
constructor() {
super();
this.state = {
index: 0,
section: 0,
width: 0,
height: 0,
isPageLoaded: false,
loadingMoreItems: false,
lastItemIndex: 0,
page: 0,
}
Orientation.addOrientationListener(this._updateOrientation.bind(this))
}
renderList(item) { …Run Code Online (Sandbox Code Playgroud) 我正在开发一个react native移动应用程序并使用服务器端API来管理用户相关数据(后端).目前,我正在使用AWS cognito支持用户注册/登录,并且所有用户详细信息似乎都保存在AWS用户池中.
我想在服务器端存储身份验证令牌和用户详细信息,以便我可以使用此详细信息来获取用户相关数据.所以,我想要实现以下方法
请求:
Mobile App UI -> Server API (backend) -> AWS cognito
Run Code Online (Sandbox Code Playgroud)
响应:
AWS cognito -> Server API (backend) -> Mobile App UI
Run Code Online (Sandbox Code Playgroud)
这可能吗?如果不是最好的方法.
应用程序因上述消息而崩溃。无法查看我的应用程序屏幕。
不变违规:TurboModuleRegistry.getEnforcing(...):找不到“DevSettings”。验证此名称的模块是否已在 na..., 堆栈中注册:
platform :ios, '9.0'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
target 'App' do
# Pods for App
pod 'FBLazyVector', :path => "../node_modules/react-native/Libraries/FBLazyVector"
#pod 'BVLinearGradient', :path => '../node_modules/react-native-linear-gradient'
pod 'FBReactNativeSpec', :path => "../node_modules/react-native/Libraries/FBReactNativeSpec"
pod 'RCTRequired', :path => "../node_modules/react-native/Libraries/RCTRequired"
pod 'RCTTypeSafety', :path => "../node_modules/react-native/Libraries/TypeSafety"
pod 'React', :path => '../node_modules/react-native/'
pod 'React-Core', :path => '../node_modules/react-native/'
pod 'React-CoreModules', :path => '../node_modules/react-native/React/CoreModules'
pod 'React-Core/DevSupport', :path => '../node_modules/react-native/'
pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS'
pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation'
pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob'
pod 'React-RCTImage', :path => …Run Code Online (Sandbox Code Playgroud) Firebase crashlytics 控制台未显示,单击启用 Crashlytics 后显示正在加载。(无法看到崩溃)
当我将构建上传到 testflight 时,我从 App Store connect 收到了这封邮件。
我想如果我将我的 Xcode 更新到 11,它就会得到解决。
任何人都可以澄清如何检查 SDK 版本以及如何更新它?
ITMS-90725: SDK Version Issue - This app was built with the iOS 12.1 SDK.
Starting April 2020, all iOS apps submitted to the App Store must be built with the iOS 13 SDK or later, included in Xcode 11 or later.
After you’ve corrected the issues, you can upload a new binary to App Store Connect.
Run Code Online (Sandbox Code Playgroud) 我有一个文本视图,带有在 TextView 中呈现的图标。它有一个图像。我已经设置在文本的左侧。但我需要将图标设置为圆形。
我如何在java中设计它?
我的代码设置在左侧。
textview.setCompoundDrawablesWithIntrinsicBounds(
image, 0, 0, 0);
Run Code Online (Sandbox Code Playgroud)
如何为上述 textview drawableleft 图像设计圆形图像。
<TextView
android:id="@+id/text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="fill_vertical"
android:ellipsize="end"
android:layout_marginTop="5dp"
android:layout_marginBottom="-10dp"
android:gravity="center"
android:layout_marginLeft="15dp"
android:minHeight="24dp"
android:paddingLeft="@dimen/spacing_d2"
android:paddingRight="@dimen/spacing_d2"
android:tag="@string/tag_font_h_regular"
android:fontFamily="@font/cachetbook"
android:textColor="@color/white_new"
android:textSize="12dp"
tools:text="Universal Orlando Resort"/>
Run Code Online (Sandbox Code Playgroud) 将 Xcode 更新到版本 14 后,我们在启动应用程序时遇到了崩溃。我们如何解决这个问题。
[13113:89575] *** Assertion failure in -[UIButton dealloc], UIView.m:4628
Run Code Online (Sandbox Code Playgroud)
*** 由于未捕获的异常“NSInternalInconsistencyException”而终止应用程序,原因:“应用程序规避了对象的 Objective-C 运行时释放分配启动。”
*** First throw call stack:
(
0 CoreFoundation 0x00007ff800427378 __exceptionPreprocess + 242
1 libobjc.A.dylib 0x00007ff80004dbaf objc_exception_throw + 48
2 Foundation 0x00007ff800b876ac _userInfoForFileAndLine + 0
3 UIKitCore 0x000000011eb8e997 -[UIView dealloc] + 1458
4 UIKitCore 0x000000011dcfb835 -[UIButton dealloc] + 41
5 libobjc.A.dylib 0x00007ff80004b6a1 _ZN11objc_object17sidetable_releaseEbb + 203
6 CoreFoundation 0x00007ff8003144e8 __RELEASE_OBJECTS_IN_THE_ARRAY__ + 11
7 CoreFoundation 0x00007ff80031442e -[__NSArrayM dealloc] + 283
8 libobjc.A.dylib 0x00007ff80004b6a1 _ZN11objc_object17sidetable_releaseEbb + 203 …Run Code Online (Sandbox Code Playgroud) react-native ×7
android ×2
java ×2
xcode ×2
aws-cognito ×1
crashlytics ×1
css ×1
fastlane ×1
firebase ×1
ios ×1
macos ×1
stylesheet ×1
textinput ×1
textview ×1
xcode14 ×1