Skip to content

Commit 3fc1860

Browse files
authored
Merge pull request #1 from piashcse/ts-migration
- Migrate to typescript
2 parents a47afa6 + 31b415e commit 3fc1860

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+115
-122
lines changed

App.js renamed to App.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,16 @@ import React from 'react';
1010
import configureStore from './src/redux';
1111
import {Provider} from 'react-redux';
1212
import Navigation from './src/navigation/AppNavigation';
13+
import NetworkConnection from "./src/utils/NetworkConnection";
1314

1415
const store = configureStore();
1516
const App = () => {
16-
return (
17-
<Provider store={store}>
18-
<Navigation />
19-
</Provider>
20-
);
17+
return (
18+
<Provider store={store}>
19+
<NetworkConnection/>
20+
<Navigation/>
21+
</Provider>
22+
);
2123
};
2224

2325
export default App;

android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ react {
3737
// The name of the generated asset file containing your JS bundle
3838
// bundleAssetName = "MyApplication.android.bundle"
3939
//
40-
// The entry file for bundle generation. Default is 'index.android.js' or 'index.js'
40+
// The entry file for bundle generation. Default is 'index.android.js' or 'index.ts'
4141
// entryFile = file("../js/MyApplication.android.js")
4242
//
4343
// A list of extra flags to pass to the 'bundle' commands.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@
1717
"@reduxjs/toolkit": "^1.9.1",
1818
"axios": "^0.27.2",
1919
"react": "18.2.0",
20-
"react-native": "0.71.3",
20+
"react-native": "0.71.7",
2121
"react-native-gesture-handler": "^2.9.0",
2222
"react-native-paper": "^5.1.3",
2323
"react-native-safe-area-context": "^4.5.0",
2424
"react-native-screens": "^3.19.0",
25+
"react-native-snackbar": "^2.4.0",
2526
"react-native-vector-icons": "^9.2.0",
2627
"react-redux": "^8.0.5",
2728
"redux": "^4.2.0",
904 KB
322 KB
714 KB
19.2 KB
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)