FIX: Forked dependency repo.

This commit is contained in:
Marcos Rodriguez 2019-08-30 00:14:06 -04:00 committed by Overtorment
parent bbefe8ff6c
commit 5f0e2d5305
3 changed files with 7 additions and 8 deletions

5
package-lock.json generated
View file

@ -10886,9 +10886,8 @@
"integrity": "sha512-cRGfomzG/5LEwuJ6ct3m5yccckeI9aj8BNYwDPVxOeJ84LuJuvk5OqcjlYNeEzOWmWiH+QrFXfpLH1ag04bUeQ=="
},
"react-native-system-setting": {
"version": "1.7.2",
"resolved": "https://registry.npmjs.org/react-native-system-setting/-/react-native-system-setting-1.7.2.tgz",
"integrity": "sha512-9tnKl/9JTxa4dtSnr2Kz61crBpBbZkyAQP0fCtllrWGERHGamJWpImp6KaiI8APHU3aDHGRN6/q92Lh7xzEVfQ=="
"version": "git+https://github.com/marcosrdz/react-native-system-setting.git#81e4fff3257d2efd0c0f3bccb17e11e94aaa2509",
"from": "git+https://github.com/marcosrdz/react-native-system-setting.git"
},
"react-native-tab-view": {
"version": "1.4.1",

View file

@ -108,7 +108,7 @@
"react-native-snap-carousel": "3.8.0",
"react-native-sortable-list": "0.0.23",
"react-native-svg": "9.5.1",
"react-native-system-setting": "1.7.2",
"react-native-system-setting": "git+https://github.com/marcosrdz/react-native-system-setting.git",
"react-native-tcp": "3.3.1",
"react-native-tooltip": "git+https://github.com/marcosrdz/react-native-tooltip.git",
"react-native-vector-icons": "6.6.0",

View file

@ -44,7 +44,7 @@ export default class LNDViewInvoice extends Component {
qrCodeHeight: height > width ? width - 20 : width / 2,
};
this.fetchInvoiceInterval = undefined;
BackHandler.addEventListener('hardwareBackPress', this.handleBackButton.bind(this));
BackHandler.addEventListener('hardwareBackPress', this.handleBackButton);
}
async componentDidMount() {
@ -96,14 +96,14 @@ export default class LNDViewInvoice extends Component {
async componentWillUnmount() {
clearInterval(this.fetchInvoiceInterval);
this.fetchInvoiceInterval = undefined;
BackHandler.removeEventListener('hardwareBackPress', this.handleBackButton.bind(this));
BackHandler.removeEventListener('hardwareBackPress', this.handleBackButton);
await SystemSetting.restoreBrightness();
}
handleBackButton() {
handleBackButton = () => {
this.props.navigation.goBack(null);
return true;
}
};
onLayout = () => {
const { height } = Dimensions.get('window');