File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ import {
1111 Text ,
1212 ScrollView ,
1313 Image ,
14- Platform ,
1514 Dimensions ,
1615} from 'react-native'
1716import delay from 'delay'
@@ -132,14 +131,8 @@ type ThumbnailProps = {
132131
133132class StreamThumbnail extends React . PureComponent < void , ThumbnailProps , void > {
134133 handlePress = ( ) => {
135- const { streamUrl, name, pageUrl} = this . props . webcam
136- if ( Platform . OS === 'ios' ) {
137- trackedOpenUrl ( { url : streamUrl , id : `${ name } WebcamView` } )
138- } else if ( Platform . OS === 'android' ) {
139- trackedOpenUrl ( { url : pageUrl , id : `${ name } WebcamView` } )
140- } else {
141- trackedOpenUrl ( { url : pageUrl , id : `${ name } WebcamView` } )
142- }
134+ const { name, pageUrl} = this . props . webcam
135+ trackedOpenUrl ( { url : pageUrl , id : `${ name } WebcamView` } )
143136 }
144137
145138 render ( ) {
You can’t perform that action at this time.
0 commit comments