File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121
2222## Table of Contents
2323
24- - [ Become a contributor] ( #become-a-contributor )
2524 - [ Documentation] ( #documentation )
2625 - [ Contributing] ( #contributing )
2726 - [ License MIT] ( #license-mit )
2827
2928---
3029
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 ` dka@yeutech.com ` .
38-
3930## Documentation
4031
4132Read [ v4 documentation] ( https://bootstrap-styled.github.io/v4 ) .
Original file line number Diff line number Diff line change 191191 "tether-fix" : " ^1.4.0-fix-es"
192192 },
193193 "peerDependencies" : {
194- "react" : " ^16.9 .0" ,
195- "react-dom" : " ^16.9 .0" ,
194+ "react" : " ^16.0 .0" ,
195+ "react-dom" : " ^16.0 .0" ,
196196 "styled-components" : " ^4.0.0"
197197 },
198198 "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
139139 exited : false ,
140140 } ;
141141
142- componentWillMount ( ) {
142+ /* eslint-disable-next-line camelcase */
143+ UNSAFE_componentWillMount ( ) {
143144 this . initializeIsOpen ( this . props ) ;
144145 if ( this . props . uncontrolled ) {
145146 if ( this . state . uncontrolledOpen ) {
@@ -160,7 +161,8 @@ class AlertUnstyled extends React.Component { // eslint-disable-line react/prefe
160161 }
161162
162163 /* eslint-enable no-console */
163- componentWillReceiveProps ( nextProps ) {
164+ /* eslint-disable-next-line camelcase */
165+ UNSAFE_componentWillReceiveProps ( nextProps ) {
164166 if ( nextProps . isOpen ) {
165167 this . setState ( { exited : false } ) ;
166168 }
Original file line number Diff line number Diff line change @@ -68,12 +68,14 @@ class Collapse extends Component {
6868 height : null ,
6969 } ;
7070
71- componentWillMount ( ) {
71+ /* eslint-disable-next-line camelcase */
72+ UNSAFE_componentWillMount ( ) {
7273 this . updateVisibility ( { collapse : this . props . isOpen ? SHOWN : HIDDEN } ) ;
7374 this . updateTransition ( { delay : this . props . delay , theme : this . props . theme } ) ;
7475 }
7576
76- componentWillReceiveProps ( nextProps ) {
77+ /* eslint-disable-next-line camelcase */
78+ UNSAFE_componentWillReceiveProps ( nextProps ) {
7779 const willOpen = nextProps . isOpen ;
7880 const { collapse } = this . state ;
7981
Original file line number Diff line number Diff line change @@ -214,7 +214,8 @@ class ModalUnstyled extends React.Component {
214214 this . _isMounted = true ;
215215 }
216216
217- componentWillReceiveProps ( nextProps ) {
217+ /* eslint-disable-next-line camelcase */
218+ UNSAFE_componentWillReceiveProps ( nextProps ) {
218219 if ( nextProps . isOpen && ! this . props . isOpen ) {
219220 this . setState ( { isOpen : nextProps . isOpen } ) ;
220221 }
Original file line number Diff line number Diff line change @@ -22,7 +22,8 @@ class SelectUnstyled extends React.Component { // eslint-disable-line react/pref
2222 }
2323
2424 // 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 ( ) {
2627 if ( typeof window !== 'undefined' ) {
2728 const nua = navigator . userAgent ;
2829 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