小编sej*_*ejn的帖子

如何在Xcode 9.2中添加模拟器iPhone XS以及iPhone XS max

我需要在XS设备中构建我的应用程序.我正在使用Xcode 9.2.如何在外部的Xcode中添加XS模式.

在我的模拟器中,我有iPhone X.

My machine Version:

OS X version: 10.12.6 (16G29)
Xcode version: 9.2
Run Code Online (Sandbox Code Playgroud)

macos xcode operating-system ios11 xcode9.2

5
推荐指数
4
解决办法
2169
查看次数

在React Native中输入字段时如何在键盘上方设置textinput框

我正在使用本机TextInput组件。如果用户单击textInput字段,则需要在键盘上方显示InputBox。

我在下面尝试过,但是我面临的问题

1.键盘避开视线

 a. Here it shows some empty space below the input box 
 b. Manually I need to scroll up the screen to see the input field which I was given in the text field
 c. Input box section is hiding while placing the mouse inside the input box 
Run Code Online (Sandbox Code Playgroud)

2. react-native-keyboard-aware-scroll-view

a.It shows some empty space below the input box
b.ScrollView is reset to the top of the page after I moving to the next input box
Run Code Online (Sandbox Code Playgroud)

在这里,我在ScrollView组件内设置了键盘感知滚动视图

请澄清 …

textbox textinput keyboard-events react-native

5
推荐指数
6
解决办法
5025
查看次数

_react3.default.createref 不是一个函数。(在 '_react2.default.createRef()'_react2.default.createRef 中是未定义的

无法通过 Instagram 登录我的应用。我正在使用 react-native instagram 包,但我面临这个问题,因为 _react3.default.creteRef() 不是一个函数。参考附件

在此处输入图片说明 环境:

Packages: (wanted => installed)
  react: 16.2.0 => 16.2.0
  react-native: ^0.53.3 => 0.53.3

Xcode: Xcode 10.1 Build version 10B61
npm: 5.6.0
OS: macOS 10.14.2
Node: 9.4.0
Run Code Online (Sandbox Code Playgroud)

react-native react-native-instagram-login

5
推荐指数
1
解决办法
3870
查看次数

如何在react-native-video中隐藏声音和全屏按钮

在视频屏幕中隐藏声音和全屏图标的任何选项。我正在使用react-native-video 包。

在此输入图像描述

react-native react-native-ios react-native-video

5
推荐指数
0
解决办法
461
查看次数

无法发出新请求,因为之前的响应仍处于打开状态:请在改造中调用 response.close()

无法发出新请求,因为之前的响应仍处于打开状态:请在改造中调用 response.close()

APIService.userLogin(jobj).enqueue(new Callback<LoginRequest>(){

        @Override
        public void onResponse(Call<LoginRequest> call, Response<LoginRequest> response) {
            System.out.println(("response ===" + response));
            ApiService getUser1 = RetrofitRequest.getClient().create(ApiService.class);
   
           final Profile profile = Profile.getInstance();
           getUser1.getUser().enqueue(new Callback<GetUser>() {
            @Override
            public void onResponse(Call<GetUser> call, Response <GetUser> response) {
            LoginRequest user = response.body();
            ApiService getUser1 = RetrofitRequest.getClient().create(ApiService.class);
            getUser1.getUser().enqueue(new Callback<GetUser>() {
            @Override
            public void onResponse(Call<GetUser> call, Response <GetUser> response) {
           }
          @Override
          public void onFailure(Call<GetUser> call, Throwable t) {
            System.out.println("GetUseronFailure" + t );
        }
    });
  }
            @Override
            public void onFailure(Call< LoginRequest > call, …
Run Code Online (Sandbox Code Playgroud)

java android android-studio rx-java retrofit2

5
推荐指数
0
解决办法
1360
查看次数

如何在react-native中长按触摸并按住

我需要长按才能将我的聊天记录存档。(即)像 Whatsapp 一样,我们长按并使聊天固定在顶部

我怎样才能使用react-native做同样的事情?

react-native

3
推荐指数
1
解决办法
1万
查看次数

如何将android密钥库签名算法名称:SHA1withRSA(弱)更新为强密钥

如何将android密钥库签名算法名称:SHA1withRSA(弱)更新为强密钥

Signature algorithm name: SHA1withRSA (weak)
Subject Public Key Algorithm: 1024-bit RSA key (weak)
Version: 3

Warning:
The certificate uses the SHA1withRSA signature algorithm which is considered a security risk. This algorithm will be disabled in a future update.
The certificate uses a 1024-bit RSA key which is considered a security risk. This key size will be disabled in a future update.
Run Code Online (Sandbox Code Playgroud)

android sha1 rsa android-security

3
推荐指数
1
解决办法
7444
查看次数

致命异常:java.lang.SecurityException RECEIVER_EXPORTED 或 RECEIVER_NOT_EXPORTED 之一(com.google.android.play:core

我的 Android 应用程序崩溃了。其中显示了 targetSDKVersion 34 的安全异常。

怎么解决这个问题。错误如下所示(playcore库)com.google.android.play.core.listener.zzc.zzb(com.google.android.play:core@@1.10.3:3)

注意:我在我的应用程序中使用 LocalBroadcastManager。这个问题是因为这个才提出来的吗?

代码:

 LocalBroadcastManager.getInstance(this).registerReceiver(mMessageReceiver, filter)
Run Code Online (Sandbox Code Playgroud)

错误:

Fatal Exception: java.lang.SecurityException
pck: One of RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED should be specified when a receiver isn't being registered exclusively for system broadcasts
android.os.Parcel.createExceptionOrNull (Parcel.java:3057)

android.content.ContextWrapper.registerReceiver (ContextWrapper.java:755)
com.google.android.play.core.listener.zzc.zzb (com.google.android.play:core@@1.10.3:3)
com.google.android.play.core.listener.zzc.zzf (com.google.android.play:core@@1.10.3:4)
com.google.android.play.core.appupdate.zzf.registerListener (com.google.android.play:core@@1.10.3:1)
fragments.Summaryfragment.onCreate (Summaryfragment.java:144)
androidx.fragment.app.Fragment.performCreate (Fragment.java:2949)

androidx.appcompat.app.AppCompatActivity.onStart (AppCompatActivity.java:246)
ActionBarFragmentActivity.onStart (ActionBarFragmentActivity.java:358)
android.app.Instrumentation.callActivityOnStart (Instrumentation.java:1582)

com.android.internal.os.ZygoteInit.main (ZygoteInit.java:971)
Run Code Online (Sandbox Code Playgroud)

java android localbroadcastmanager

3
推荐指数
1
解决办法
3531
查看次数

澄清:如何在react-native中的我的应用程序中添加自定义包

react-native我根据我的要求更改了包 src 组件。我如何将其添加到我的应用程序中?

(即)我添加了react-native-floating-action并更改了文件中的一些FloatingActionItem.js样式FloatingAction.js。如何在我的应用程序中添加更改。

因为如果我删除节点模块,则再次安装后所有更改都会消失。

ios react-native

2
推荐指数
1
解决办法
2336
查看次数

如何在xcode中克隆项目并在ios 7或7+等中运行应用程序

我已经克隆了一个项目,并尝试在设备(iPhone 7)上运行我的应用程序,但是它显示了构建失败,并带有以下提到的错误。

注意:如果我用Xcode创建一个新项目,则可以在我的设备上运行该应用程序。

我该如何解决?

错误:

Failed to create provisioning profile.


     The app ID "org.reactjs.native.example.app" cannot be registered to your development team. Change your bundle identifier to a unique string to try again.


        No profiles for 'org.reactjs.native.example.app' were found
        Xcode couldn't find any iOS App Development provisioning profiles matching 'org.reactjs.native.example.app'.
Run Code Online (Sandbox Code Playgroud)

mobile ios react-native

0
推荐指数
1
解决办法
575
查看次数