Skip to content

Commit 0fa583c

Browse files
committed
Compatible with RN v0.36.0
1 parent c8873cc commit 0fa583c

File tree

5 files changed

+9
-7
lines changed

5 files changed

+9
-7
lines changed

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ You can find them in the example.
2121

2222
## Update History
2323

24+
### v0.4.0-rc.2
25+
- Enhancement: Compatible with `react-native` v0.36.0 which has a [break change](https://github.com/facebook/react-native/commit/0a9b6bedb312eba22c5bc11498b1cc41363e5f27) causes the default button with zero size.
26+
2427
### v0.4.0-rc.1
2528
- New feature: [\#11](https://github.com/sohobloo/react-native-modal-dropdown/issues/11) Open `renderSeparator` prop API.
2629
- New feature:

components/ModalDropdown.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ export default class ModalDropdown extends Component {
346346

347347
const styles = StyleSheet.create({
348348
button: {
349-
flex: 1,
349+
flexGrow: 1,
350350
justifyContent: 'center',
351351
},
352352
buttonText: {

example/index.js

-1
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,6 @@ const styles = StyleSheet.create({
285285
width: 100,
286286
},
287287
dropdown_5: {
288-
alignSelf: 'flex-end',
289288
margin: 8,
290289
borderColor: 'lightgray',
291290
borderWidth: 1,

example/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"name": "react-native-modal-dropdown-demo",
3-
"version": "0.4.0-rc.1",
3+
"version": "0.4.0-rc.2",
44
"description": "A demo for react-native-modal-dropdown component.",
55
"homepage": "https://github.com/sohobloo/react-native-modal-dropdown",
66
"license": "MIT",
77
"author": "sohobloo <[email protected]> (https://github.com/sohobloo)",
88
"dependencies": {
9-
"react": "15.3.1",
10-
"react-native": "0.33.0",
11-
"react-native-modal-dropdown": "0.4.0-rc.1",
9+
"react": "~15.3.1",
10+
"react-native": "0.36.0",
11+
"react-native-modal-dropdown": "latest"
1212
},
1313
"scripts": {
1414
"start": "node node_modules/react-native/local-cli/cli.js start"

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-modal-dropdown",
3-
"version": "0.4.0-rc.1",
3+
"version": "0.4.0-rc.2",
44
"description": "A react-native dropdown component for both iOS and Android.",
55
"keywords": [
66
"react",

0 commit comments

Comments
 (0)