commit 09d771d74d221bc32c4b98dc94008206dfd80f46
parent 5d2baaf85e39c3d5244d9ba3519e238f0a08b7b1
Author: Johan Lindskogen <johan.lindskogen@gmail.com>
Date: Sun, 1 Apr 2018 17:26:59 +0200
Open links with Linking
Diffstat:
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/usecase/buffers/ui/BufferContainer.tsx b/src/usecase/buffers/ui/BufferContainer.tsx
@@ -2,7 +2,7 @@ import * as React from "react";
import {
StyleSheet,
AlertIOS,
- LinkingIOS,
+ Linking,
ActionSheetIOS,
KeyboardAvoidingView,
Animated,
@@ -61,12 +61,12 @@ export default class BufferContainer extends React.Component<Props, State> {
);
}
handleOnPress(type, text) {
- // console.log(type, text);
- // if (type === "channel") {
- // this.props.dispatch(changeCurrentBuffer(text));
- // } else {
- // LinkingIOS.openURL(formatUrl(type, text));
- // }
+ console.log(type, text);
+ if (type === "channel") {
+ // this.props.dispatch(changeCurrentBuffer(text));
+ } else {
+ Linking.openURL(formatUrl(type, text));
+ }
}
render() {
const { bufferId } = this.props;