Skip to content

Commit fc85e28

Browse files
committed
修复demo android 设置登录按钮图片样式 不生效的问题。
1 parent 06becea commit fc85e28

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,3 +206,4 @@ yarn.lock
206206
*.DS_Store
207207

208208
*.gitattributes
209+
.idea

example/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ const customConfigParams = {
106106
loginBtnTextSize: 16, //登录按钮字体大小
107107
loginBtnTextColor: -16777216, //登录按钮文字颜色
108108

109-
loginBtnImage: 'login_btn_selector', //登录按钮selector选择样式 (仅android)
109+
loginBtnImageSelector: 'login_btn_selector', //登录按钮selector选择样式 (仅android)
110110
loginBtnNormalImage: 'loginBtn_Nor', //登录按钮正常图片 (仅ios,三个同时设置生效)
111111
loginBtnDisabledImage: 'loginBtn_Dis', //登录按钮失效图片 (仅ios,三个同时设置生效)
112112
loginBtnSelectedImage: 'loginBtn_Hig', //登录按钮按下图片 (仅ios,三个同时设置生效)

example/android/settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ apply from: file("../node_modules/@react-native-community/cli-platform-android/n
33
include ':app'
44

55
include ':jverification-react-native'
6-
project(':jverification-react-native').projectDir = new File(rootProject.projectDir, '../../android')
6+
project(':jverification-react-native').projectDir = new File(rootProject.projectDir, '../node_modules/jverification-react-native/android')
77
include ':jcore-react-native'
88
project(':jcore-react-native').projectDir = new File(rootProject.projectDir, '../node_modules/jcore-react-native/android')

example/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"dependencies": {
1010
"jcore-react-native": "^1.7.0",
1111
"react": "16.8.6",
12-
"react-native": "0.63.4"
12+
"react-native": "0.63.4",
13+
"jverification-react-native": "2.4.4"
1314
},
1415
"devDependencies": {
1516
"@babel/core": "^7.5.0",

0 commit comments

Comments
 (0)