Skip to content

Commit 6692705

Browse files
authored
Sample / 0.76.9 → 0.77.3 (#308)
* Upgrade to 0.77.3 * Fix linting
1 parent 4987d55 commit 6692705

File tree

20 files changed

+1200
-1291
lines changed

20 files changed

+1200
-1291
lines changed

metro.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const sample = path.resolve(root, 'sample');
88
* Metro configuration
99
* https://reactnative.dev/docs/metro
1010
*
11-
* @type {import('metro-config').MetroConfig}
11+
* @type {import('@react-native/metro-config').MetroConfig}
1212
*/
1313
const config = mergeConfig(getDefaultConfig(__dirname), {
1414
projectRoot: sample,

package.json

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,28 +31,27 @@
3131
"@react-native-community/cli": "15.0.1",
3232
"@react-native-community/cli-platform-android": "15.0.1",
3333
"@react-native-community/cli-platform-ios": "15.0.1",
34-
"@react-native/babel-preset": "0.76.9",
35-
"@react-native/eslint-config": "0.76.9",
36-
"@react-native/metro-config": "0.76.9",
37-
"@react-native/typescript-config": "0.76.9",
34+
"@react-native/babel-preset": "0.77.3",
35+
"@react-native/eslint-config": "0.77.3",
36+
"@react-native/metro-config": "0.77.3",
37+
"@react-native/typescript-config": "0.77.3",
3838
"@testing-library/react-native": "^13.3.1",
3939
"@tsconfig/react-native": "^3.0.6",
40-
"@types/jest": "^30.0.0",
40+
"@types/jest": "^29.5.13",
4141
"@types/react": "^18",
4242
"@types/react-native-dotenv": "^0.2.1",
4343
"@types/react-test-renderer": "^18",
44-
"babel-jest": "^29.7.0",
45-
"eslint": "^8.19.0",
44+
"eslint": "^8.57.1",
4645
"eslint-plugin-prettier": "^5.5.4",
4746
"jest": "^30.0.5",
4847
"prettier": "^3.2.5",
4948
"react": "18.3.1",
50-
"react-native": "0.76.9",
49+
"react-native": "0.77.3",
5150
"react-native-dotenv": "^3.4.9",
5251
"react-native-gesture-handler": "2.25.0",
5352
"react-native-gradle-plugin": "^0.71.19",
5453
"react-test-renderer": "18.3.1",
55-
"ts-jest": "^29.1.1",
54+
"ts-jest": "^29.4.1",
5655
"turbo": "^1.13.4",
5756
"typescript": "^5.9.2"
5857
},

sample/Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ DEPENDENCIES
117117
xcodeproj (< 1.26.0)
118118

119119
RUBY VERSION
120-
ruby 3.1.2p20
120+
ruby 3.3.6p108
121121

122122
BUNDLED WITH
123123
2.5.23

sample/android/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ buildscript {
55
minSdkVersion = 24
66
compileSdkVersion = 35
77
targetSdkVersion = 34
8-
ndkVersion = "26.1.10909125"
9-
kotlinVersion = "1.9.25"
8+
ndkVersion = "27.1.12297006"
9+
kotlinVersion = "2.0.21"
1010
}
1111
repositories {
1212
google()

sample/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2121
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2222
*/
2323

24+
import 'setimmediate';
2425
import 'react-native-gesture-handler';
2526

2627
import SampleApp from './src/App';

sample/ios/AppDelegate.swift

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import React
2+
import React_RCTAppDelegate
3+
import ReactAppDependencyProvider
4+
import UIKit
5+
6+
@main
7+
class AppDelegate: RCTAppDelegate {
8+
override func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil) -> Bool {
9+
moduleName = "ReactNative"
10+
dependencyProvider = RCTAppDependencyProvider()
11+
12+
// You can add your custom initial props in the dictionary below.
13+
// They will be passed down to the ViewController used by React Native.
14+
initialProps = [:]
15+
16+
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
17+
}
18+
19+
override func sourceURL(for _: RCTBridge) -> URL? {
20+
bundleURL()
21+
}
22+
23+
override func bundleURL() -> URL? {
24+
#if DEBUG
25+
RCTBundleURLProvider.sharedSettings().jsBundleURL(forBundleRoot: "index")
26+
#else
27+
Bundle.main.url(forResource: "main", withExtension: "jsbundle")
28+
#endif
29+
}
30+
}

sample/ios/Podfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ target 'ReactNative' do
3030

3131
target 'ReactNativeTests' do
3232
inherit! :complete
33-
# Pods for testing
3433
end
3534

3635
post_install do |installer|

0 commit comments

Comments
 (0)