Migrating react-native to 0.77
Update dependency package
Change the version of react-native-screens
.
You can change the version in your package.json
file directory:
Untitled
"react-native-screens": "^3.37.0",
1
Or run the following command:
yarn
yarn add react-native-screens
1
Update AppDelegate.swift for iOS
Add the seventh line as shown in the following code snippet, @objc(AppDelegate)
swift
import UIKit
import React
import React_RCTAppDelegate
import ReactAppDependencyProvider
@main
@objc(AppDelegate)
class AppDelegate: RCTAppDelegate
1