Skip to content

Commit

Permalink
RN upgrade: code/implementation fixes - not using the deprecated 'com…
Browse files Browse the repository at this point in the history
…ponentWillMount' instead relying on 'componentDidMount'
  • Loading branch information
saru2020 committed Jan 29, 2023
1 parent d5823b4 commit d129833
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Components/VolumeBox.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import React, { Component } from 'react';
import Slider from '@react-native-community/slider';

import {
StyleSheet,
Text,
View,
Slider
View
} from 'react-native';

export default class VolumeBox extends Component {
Expand All @@ -17,7 +18,10 @@ export default class VolumeBox extends Component {

}

componentWillMount() {
// componentWillMount() {
// this.disabled(this.state.disabled)
// }
componentDidMount() {
this.disabled(this.state.disabled)
}

Expand Down

0 comments on commit d129833

Please sign in to comment.