File tree Expand file tree Collapse file tree 6 files changed +14
-17
lines changed Expand file tree Collapse file tree 6 files changed +14
-17
lines changed Original file line number Diff line number Diff line change 21
21
22
22
## Table of Contents
23
23
24
- - [ Become a contributor] ( #become-a-contributor )
25
24
- [ Documentation] ( #documentation )
26
25
- [ Contributing] ( #contributing )
27
26
- [ License MIT] ( #license-mit )
28
27
29
28
---
30
29
31
- ## Become a contributor
32
-
33
- We are missing contributors to keep up to date the project with the latest react upgrade.
34
-
35
- This is why we have recently locked the react compatible version between ` >=16.0.0 <=16.8.6 ` .
36
-
37
- If you wish to join the core team and help to follow react upgrades, please contact
` [email protected] ` .
38
-
39
30
## Documentation
40
31
41
32
Read [ v4 documentation] ( https://bootstrap-styled.github.io/v4 ) .
Original file line number Diff line number Diff line change 191
191
"tether-fix" : " ^1.4.0-fix-es"
192
192
},
193
193
"peerDependencies" : {
194
- "react" : " ^16.9 .0" ,
195
- "react-dom" : " ^16.9 .0" ,
194
+ "react" : " ^16.0 .0" ,
195
+ "react-dom" : " ^16.0 .0" ,
196
196
"styled-components" : " ^4.0.0"
197
197
},
198
198
"publishConfig" : {
Original file line number Diff line number Diff line change @@ -139,7 +139,8 @@ class AlertUnstyled extends React.Component { // eslint-disable-line react/prefe
139
139
exited : false ,
140
140
} ;
141
141
142
- componentWillMount ( ) {
142
+ /* eslint-disable-next-line camelcase */
143
+ UNSAFE_componentWillMount ( ) {
143
144
this . initializeIsOpen ( this . props ) ;
144
145
if ( this . props . uncontrolled ) {
145
146
if ( this . state . uncontrolledOpen ) {
@@ -160,7 +161,8 @@ class AlertUnstyled extends React.Component { // eslint-disable-line react/prefe
160
161
}
161
162
162
163
/* eslint-enable no-console */
163
- componentWillReceiveProps ( nextProps ) {
164
+ /* eslint-disable-next-line camelcase */
165
+ UNSAFE_componentWillReceiveProps ( nextProps ) {
164
166
if ( nextProps . isOpen ) {
165
167
this . setState ( { exited : false } ) ;
166
168
}
Original file line number Diff line number Diff line change @@ -68,12 +68,14 @@ class Collapse extends Component {
68
68
height : null ,
69
69
} ;
70
70
71
- componentWillMount ( ) {
71
+ /* eslint-disable-next-line camelcase */
72
+ UNSAFE_componentWillMount ( ) {
72
73
this . updateVisibility ( { collapse : this . props . isOpen ? SHOWN : HIDDEN } ) ;
73
74
this . updateTransition ( { delay : this . props . delay , theme : this . props . theme } ) ;
74
75
}
75
76
76
- componentWillReceiveProps ( nextProps ) {
77
+ /* eslint-disable-next-line camelcase */
78
+ UNSAFE_componentWillReceiveProps ( nextProps ) {
77
79
const willOpen = nextProps . isOpen ;
78
80
const { collapse } = this . state ;
79
81
Original file line number Diff line number Diff line change @@ -214,7 +214,8 @@ class ModalUnstyled extends React.Component {
214
214
this . _isMounted = true ;
215
215
}
216
216
217
- componentWillReceiveProps ( nextProps ) {
217
+ /* eslint-disable-next-line camelcase */
218
+ UNSAFE_componentWillReceiveProps ( nextProps ) {
218
219
if ( nextProps . isOpen && ! this . props . isOpen ) {
219
220
this . setState ( { isOpen : nextProps . isOpen } ) ;
220
221
}
Original file line number Diff line number Diff line change @@ -22,7 +22,8 @@ class SelectUnstyled extends React.Component { // eslint-disable-line react/pref
22
22
}
23
23
24
24
// Android browser fix: https://v4-alpha.getbootstrap.com/getting-started/browsers-devices/#android-stock-browser
25
- componentWillMount ( ) {
25
+ /* eslint-disable-next-line camelcase */
26
+ UNSAFE_componentWillMount ( ) {
26
27
if ( typeof window !== 'undefined' ) {
27
28
const nua = navigator . userAgent ;
28
29
const isAndroid = ( nua . indexOf ( 'Mozilla/5.0' ) > - 1 && nua . indexOf ( 'Android ' ) > - 1 && nua . indexOf ( 'AppleWebKit' ) > - 1 && nua . indexOf ( 'Chrome' ) === - 1 ) ;
You can’t perform that action at this time.
0 commit comments