@@ -78,8 +78,9 @@ const config: Config = {
78
78
} ,
79
79
80
80
title : 'React Native' ,
81
- tagline : 'A framework for building native apps using React' ,
82
- organizationName : 'facebook' ,
81
+ tagline :
82
+ 'A framework for building native apps for Android, iOS, and more using React' ,
83
+ organizationName : 'Meta Platforms, Inc.' ,
83
84
projectName : 'react-native' ,
84
85
url : 'https://reactnative.dev' ,
85
86
baseUrl : '/' ,
@@ -100,7 +101,7 @@ const config: Config = {
100
101
{ src : 'https://snack.expo.dev/embed.js' , defer : true } ,
101
102
{ src : 'https://platform.twitter.com/widgets.js' , async : true } ,
102
103
] ,
103
- favicon : 'img/ favicon.ico' ,
104
+ favicon : 'favicon.ico' ,
104
105
titleDelimiter : '·' ,
105
106
customFields : {
106
107
users,
@@ -111,6 +112,62 @@ const config: Config = {
111
112
locales : [ 'en' ] ,
112
113
} ,
113
114
onBrokenLinks : 'warn' ,
115
+ headTags : [
116
+ {
117
+ tagName : 'script' ,
118
+ attributes : {
119
+ type : 'application/ld+json' ,
120
+ } ,
121
+ innerHTML : JSON . stringify ( {
122
+ '@context' : 'https://schema.org/' ,
123
+ '@type' : 'WebPage' ,
124
+ '@id' : 'https://reactnative.dev/' ,
125
+ url : 'https://reactnative.dev/' ,
126
+ name : 'React Native · Learn once, write anywhere' ,
127
+ description :
128
+ 'A framework for building native apps for Android, iOS, and more using React' ,
129
+ logo : 'https://reactnative.dev/img/pwa/manifest-icon-192.png' ,
130
+ inLanguage : 'en-US' ,
131
+ } ) ,
132
+ } ,
133
+ {
134
+ tagName : 'script' ,
135
+ attributes : {
136
+ type : 'application/ld+json' ,
137
+ } ,
138
+ innerHTML : JSON . stringify ( {
139
+ '@type' : 'WebSite' ,
140
+ '@id' : 'https://reactnative.dev/' ,
141
+ url : 'https://reactnative.dev/' ,
142
+ name : 'React Native · Learn once, write anywhere' ,
143
+ description :
144
+ 'A framework for building native apps for Android, iOS, and more using React' ,
145
+ publisher : 'Meta Platforms, Inc.' ,
146
+ potentialAction : [
147
+ {
148
+ '@type' : 'SearchAction' ,
149
+ target : {
150
+ '@type' : 'EntryPoint' ,
151
+ urlTemplate : 'https://reactnative.dev/search?q={query}' ,
152
+ } ,
153
+ 'query-input' : {
154
+ '@type' : 'PropertyValueSpecification' ,
155
+ valueRequired : true ,
156
+ valueName : 'query' ,
157
+ } ,
158
+ } ,
159
+ ] ,
160
+ inLanguage : 'en-US' ,
161
+ } ) ,
162
+ } ,
163
+ {
164
+ tagName : 'link' ,
165
+ attributes : {
166
+ rel : 'apple-touch-icon' ,
167
+ href : '/img/pwa/apple-icon-180.png' ,
168
+ } ,
169
+ } ,
170
+ ] ,
114
171
presets : [
115
172
[
116
173
'@docusaurus/preset-classic' ,
@@ -149,10 +206,6 @@ const config: Config = {
149
206
require . resolve ( './src/css/versions.scss' ) ,
150
207
] ,
151
208
} ,
152
- // TODO: GA is deprecated, remove once we're sure data is streaming in GA4 via gtag.
153
- googleAnalytics : {
154
- trackingID : 'UA-41298772-2' ,
155
- } ,
156
209
gtag : {
157
210
trackingID : 'G-58L13S6BDP' ,
158
211
} ,
@@ -504,6 +557,7 @@ const config: Config = {
504
557
content : 'https://reactnative.dev/img/logo-share.png' ,
505
558
} ,
506
559
{ name : 'twitter:site' , content : '@reactnative' } ,
560
+ { name : 'apple-mobile-web-app-capable' , content : 'yes' } ,
507
561
] ,
508
562
} satisfies Preset . ThemeConfig ,
509
563
} ;
0 commit comments