Skip to content

Commit acf9a53

Browse files
authored
Merge pull request #397 from thiagobrez/feat/rn77-warning
Add warning for AppDelegate.mm on RN 0.77
2 parents 671a552 + 3115d2c commit acf9a53

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed

Diff for: src/releases/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { PACKAGE_NAMES } from '../constants'
22

33
const versionsWithContent = {
44
[PACKAGE_NAMES.RN]: [
5+
'0.77',
56
'0.73',
67
'0.74',
78
'0.72',

Diff for: src/releases/react-native/0.77.tsx

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import Markdown from '../../components/common/Markdown'
2+
import type { ReleaseT } from '../types'
3+
const release: ReleaseT = {
4+
usefulContent: {
5+
description: (
6+
<Markdown>
7+
React Native 0.77 changes the AppDelegate template from Obj-C++ to
8+
Swift, but it's not only a syntax change. If you stick with the
9+
`AppDelegate.mm` file, be sure to add the new line with
10+
`RCTAppDependencyProvider`, as explained in the blog post below.
11+
</Markdown>
12+
),
13+
links: [
14+
{
15+
title: 'React Native 0.77 blog post',
16+
url: 'https://reactnative.dev/blog/2025/01/21/version-0.77#rctappdependencyprovider',
17+
},
18+
],
19+
},
20+
}
21+
22+
export default release

Diff for: src/releases/types.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ interface ReleaseLinkT {
44
}
55

66
interface ReleaseUsefulContentT {
7-
description: string
7+
description: string | React.ReactNode
88
links: ReleaseLinkT[]
99
}
1010

0 commit comments

Comments
 (0)