小编raj*_*t44的帖子

如何删除已安装的库表单反应本机项目

我在我的项目中安装了第三方库,但它无法正常工作,所以我想从我的项目中删除该库,我该怎么做?

react-native

82
推荐指数
5
解决办法
13万
查看次数

如何在默认的Android模拟器中重新加载反应本机应用程序

我使用默认的Android模拟器来运行本机应用程序,我需要经常重新加载应用程序,我该怎么做?

如何设置genymotion设置为应用程序运行的默认模拟器?

android-emulator react-native

37
推荐指数
6
解决办法
4万
查看次数

如何在本机中处理不同的屏幕尺寸?

我正在开发一个反应原生的应用程序.我已经制作了一个在iPhone 6上工作正常但在iPhone 5或更低版本上无法正常工作的用户界面.我该怎么解决这个问题?

user-interface screen-size react-native

7
推荐指数
3
解决办法
9118
查看次数

无法使用react-native为Android构建

我正在尝试运行react-native run-android但我不断得到这个错误.我正在模拟器上运行.我开始使用应用程序react-native init.

PS:我在代理上运行.

当我试图跑

react-native run-android

我明白了:

FAILURE: Build failed with an exception.

*  What went wrong:
 A problem occurred configuring root project 'AwesomeProject'.
 > Could not resolve all dependencies for configuration ':classpath'.
 > Could not resolve com.android.tools.build:gradle:2.2.3.
 Required by:
     :AwesomeProject:unspecified
  > Could not resolve com.android.tools.build:gradle:2.2.3.
     > Could not get resource 'https://jcenter.bintray.com/com/android/tool
/build/gradle/2.2.3/gradle-2.2.3.pom'.
        > Could not GET 'https://jcenter.bintray.com/com/android/tools/buil
 /gradle/2.2.3/gradle-2.2.3.pom'. Received status code 407 from server: 
 Proxy Authentication Required
Run Code Online (Sandbox Code Playgroud)

当我试图跑

直接在Android Studio中

我明白了:

Error:Could not GET 
'https://jcenter.bintray.com/com/android/tools/build/gradle/2.2.3/gradle-
2.2.3.pom'. …
Run Code Online (Sandbox Code Playgroud)

android android-gradle-plugin react-native

7
推荐指数
1
解决办法
1594
查看次数

imeOption ="actionNext"在TextInputLayout中不起作用.

我正在使用材料设计中的浮动提示.我希望将焦点从一个EditText转移到下一个,所以我在所有editTexts中放置了imeOptions ="actionNext",在最后一个EditText中放了imeOptions ="actionDone".但重点不是转移到下一个EditText. 下面是我的xml的片段.

 <android.support.design.widget.TextInputLayout
                        android:id="@+id/streetWrapper"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:theme="@style/TextInputStyle"
                        >

                        <EditText

                            android:layout_width="match_parent"
                            android:layout_height="wrap_content"
                            android:hint="Street/Locality *"
                            android:imeOptions="actionNext"
                            android:maxLines="1"

                            />

                    </android.support.design.widget.TextInputLayout>

                    <android.support.design.widget.TextInputLayout
                        android:id="@+id/flatWrapper"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:layout_marginTop="@dimen/_10sdp"
                        android:theme="@style/TextInputStyle">

                        <EditText

                            android:layout_width="match_parent"
                            android:layout_height="wrap_content"
                            android:hint="Building Name / Flat Number*"
                            android:imeOptions="actionNext"
                            android:maxLines="1"
                            />

                    </android.support.design.widget.TextInputLayout>
Run Code Online (Sandbox Code Playgroud)

xml android android-layout android-textinputlayout

6
推荐指数
2
解决办法
3564
查看次数