File tree Expand file tree Collapse file tree 4 files changed +18
-0
lines changed Expand file tree Collapse file tree 4 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## [ Unreleased] ( https://github.com/Instabug/Instabug-React-Native/compare/v14.1.0...dev )
4
+
5
+ ## Fixed
6
+
7
+ - Intercept incomplete network Requests ([ #1365 ] ( https://github.com/Instabug/Instabug-React-Native/pull/1365 ) )
8
+
9
+
3
10
## [ 14.1.0] ( https://github.com/Instabug/Instabug-React-Native/compare/v14.0.0...v14.1.0 ) (January 2, 2025)
4
11
5
12
### Added
Original file line number Diff line number Diff line change 11
11
},
12
12
"dependencies" : {
13
13
"@react-native-clipboard/clipboard" : " ^1.14.3" ,
14
+ "@react-native-community/netinfo" : " ^11.4.1" ,
14
15
"@react-native-community/slider" : " ^4.5.5" ,
15
16
"@react-navigation/bottom-tabs" : " ^6.5.7" ,
16
17
"@react-navigation/native" : " ^6.1.6" ,
Original file line number Diff line number Diff line change @@ -11,12 +11,16 @@ import axios from 'axios';
11
11
import type { HomeStackParamList } from '../../navigation/HomeStack' ;
12
12
import type { NativeStackScreenProps } from '@react-navigation/native-stack' ;
13
13
import { ListTile } from '../../components/ListTile' ;
14
+ import { useNetInfo } from '@react-native-community/netinfo' ;
14
15
15
16
export const NetworkScreen : React . FC <
16
17
NativeStackScreenProps < HomeStackParamList , 'NetworkTraces' >
17
18
> = ( { navigation } ) => {
18
19
const [ endpointUrl , setEndpointUrl ] = useState ( '' ) ;
19
20
const { width, height } = useWindowDimensions ( ) ;
21
+
22
+ const { isConnected } = useNetInfo ( ) ;
23
+
20
24
const defaultRequestUrl = 'https://jsonplaceholder.typicode.com/posts/1' ;
21
25
const imageUrls = [
22
26
'https://fastly.picsum.photos/id/57/200/300.jpg?hmac=l908G1qVr4r7dP947-tak2mY8Vvic_vEYzCXUCKKskY' ,
@@ -129,6 +133,7 @@ export const NetworkScreen: React.FC<
129
133
/>
130
134
< CustomButton onPress = { ( ) => refetch } title = "Reload GraphQL" />
131
135
< View >
136
+ < Text > { isConnected ? 'Network is Connected' : 'Network is not connected' } </ Text >
132
137
{ isLoading && < Text > Loading...</ Text > }
133
138
{ isSuccess && < Text > GraphQL Data: { data . country . emoji } </ Text > }
134
139
{ isError && < Text > Error!</ Text > }
Original file line number Diff line number Diff line change 2041
2041
prompts "^2.4.2"
2042
2042
semver "^7.5.2"
2043
2043
2044
+ " @react-native-community/netinfo@^11.4.1 " :
2045
+ version "11.4.1"
2046
+ resolved "https://registry.yarnpkg.com/@react-native-community/netinfo/-/netinfo-11.4.1.tgz#a3c247aceab35f75dd0aa4bfa85d2be5a4508688"
2047
+ integrity sha512-B0BYAkghz3Q2V09BF88RA601XursIEA111tnc2JOaN7axJWmNefmfjZqw/KdSxKZp7CZUuPpjBmz/WCR9uaHYg==
2048
+
2044
2049
" @react-native-community/slider@^4.5.5 " :
2045
2050
version "4.5.5"
2046
2051
resolved "https://registry.yarnpkg.com/@react-native-community/slider/-/slider-4.5.5.tgz#d70fc5870477760033769bbd6625d57e7d7678b2"
You can’t perform that action at this time.
0 commit comments