Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
react-native-picker
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Jira
Jira
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
ym
react-native-picker
Commits
c5d4b22a
Commit
c5d4b22a
authored
Aug 16, 2017
by
zooble
Committed by
GitHub
Aug 16, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #151 from a289459798/master
修复android与ios使用中遇到的bug
parents
0850b366
74b2bc82
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
android/src/main/java/com/beefe/picker/PickerViewModule.java
android/src/main/java/com/beefe/picker/PickerViewModule.java
+1
-0
ios/RCTBEEPickerManager/BzwPicker.m
ios/RCTBEEPickerManager/BzwPicker.m
+3
-1
No files found.
android/src/main/java/com/beefe/picker/PickerViewModule.java
View file @
c5d4b22a
...
...
@@ -350,6 +350,7 @@ public class PickerViewModule extends ReactContextBaseJavaModule implements Life
Window
window
=
dialog
.
getWindow
();
if
(
window
!=
null
)
{
layoutParams
.
flags
=
WindowManager
.
LayoutParams
.
FLAG_NOT_FOCUSABLE
;
layoutParams
.
type
=
WindowManager
.
LayoutParams
.
TYPE_TOAST
;
layoutParams
.
format
=
PixelFormat
.
TRANSPARENT
;
layoutParams
.
windowAnimations
=
R
.
style
.
PickerAnim
;
layoutParams
.
width
=
WindowManager
.
LayoutParams
.
MATCH_PARENT
;
...
...
ios/RCTBEEPickerManager/BzwPicker.m
View file @
c5d4b22a
...
...
@@ -477,6 +477,8 @@
id
firstobject
=
[
self
.
dataDry
firstObject
];
_seleNum
=
1
;
if
([
firstobject
isKindOfClass
:[
NSArray
class
]])
{
_seleNum
=
self
.
dataDry
.
count
;
...
...
@@ -618,7 +620,7 @@
[
dic
setValue
:
@"confirm"
forKey
:
@"type"
];
NSMutableArray
*
arry
=
[[
NSMutableArray
alloc
]
init
];
[
dic
setValue
:[
self
getselectIndexArry
]
forKey
:
@"selectedIndex"
];
[
dic
setValue
:
arry
forKey
:
@"selectedIndex"
];
//
[dic setValue:arry forKey:@"selectedIndex"];
self
.
bolock
(
dic
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment