@@ -2,7 +2,10 @@ import Head from "next/head";
2
2
import React , { useEffect , useContext , useState } from "react" ;
3
3
import {
4
4
Box ,
5
+ Divider ,
5
6
HStack ,
7
+ Heading ,
8
+ Icon ,
6
9
Link ,
7
10
Modal ,
8
11
Pressable ,
@@ -27,6 +30,7 @@ import NativebaseIconLogo from "../src/new-components/NativebaseIconLogo";
27
30
import Script from "next/script" ;
28
31
import { isLatestVersionSlug } from "../src/utils" ;
29
32
import { AlertIcon , RightArrow } from "./icons" ;
33
+ import Svg , { Path } from "react-native-svg" ;
30
34
31
35
function Layout ( {
32
36
children : content ,
@@ -169,7 +173,8 @@ function Layout({
169
173
< Script
170
174
async
171
175
src = "https://www.googletagmanager.com/gtag/js?id=G-DBP9QMTGR1"
172
- > </ Script >
176
+ >
177
+ </ Script >
173
178
< Script id = "gTagScript" >
174
179
{ `
175
180
window.dataLayer = window.dataLayer || [];
@@ -190,90 +195,65 @@ function Layout({
190
195
>
191
196
< Modal . CloseButton />
192
197
< Modal . Body p = "9" >
193
- < HStack mb = "4" alignItems = "center" justifyContent = "center" >
194
- < Text fontSize = "md" fontWeight = "bold" textAlign = "center" mr = "1" >
198
+ < HStack mb = "6" alignItems = "center" justifyContent = "flex" >
199
+ < AlertIcon />
200
+ < Heading fontSize = 'xl' textAlign = "left" ml = "1.5" >
195
201
IMPORTANT MESSAGE
196
- </ Text >
197
- < AlertIcon />
202
+ </ Heading >
198
203
</ HStack >
199
- < Text
200
- fontSize = "lg"
201
- lineHeight = { 27 }
202
- textAlign = "center"
203
- color = "muted.800"
204
- _dark = { {
205
- color : "muted.200" ,
206
- } }
207
- >
208
- If you are starting a new project with NativeBase, we recommend
209
- using < Text fontWeight = "bold" > gluestack</ Text > instead.
210
- </ Text >
211
-
212
- < HStack justifyContent = "center" >
213
- < a href = "https://gluestack.io/" >
214
- < Pressable
215
- my = "6"
216
- borderWidth = { 1 }
217
- rounded = "sm"
218
- px = "3"
219
- py = "2"
220
- _light = { {
221
- borderColor : "muted.900" ,
222
- } }
223
- _dark = { {
224
- borderColor : "muted.50" ,
225
- } }
226
- _hover = { {
227
- bg : "primary.200" ,
228
- borderColor : "primary.200" ,
229
- _dark : {
230
- bg : "primary.700" ,
231
- borderColor : "primary.700" ,
232
- } ,
233
- } }
234
- _focus = { {
235
- bg : "primary.300" ,
236
- borderColor : "primary.300" ,
237
- _dark : {
238
- bg : "primary.800" ,
239
- borderColor : "primary.800" ,
240
- } ,
241
- } }
242
- >
204
+ { /* @ts -ignore*/ }
205
+ < Box gap = { 5 } >
206
+ < Box flexDirection = 'row' >
207
+ < Icon size = { 18 } color = 'black' >
208
+ < Svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" stroke-linecap = "round" stroke-linejoin = "round" >
209
+ < Path d = "M21 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h6" />
210
+ < Path d = "m21 3-9 9" />
211
+ < Path d = "M15 3h6v6" />
212
+ </ Svg >
213
+ </ Icon >
214
+ < Box w = '92%' maxW = '100%' ml = "2" >
215
+ < Heading fontSize = 'md' > Upgrade to gluestack-ui</ Heading >
243
216
< Text
244
- fontSize = "md"
245
- fontWeight = "medium"
246
- _light = { {
247
- color : "muted.900" ,
248
- } }
217
+ fontSize = "sm"
218
+ textAlign = "left"
219
+ color = "muted.800"
249
220
_dark = { {
250
- color : "muted.50 " ,
221
+ color : "muted.200 " ,
251
222
} }
252
223
>
253
- Explore gluestack
224
+ If you are starting a new project with NativeBase, we recommend
225
+ using < Link href = "https://gluestack.io/" fontWeight = "bold" > gluestack-ui</ Link >
254
226
</ Text >
255
- </ Pressable >
256
- </ a >
257
- </ HStack >
227
+ </ Box >
228
+ </ Box >
258
229
259
- < HStack justifyContent = "center" >
260
- < Link
261
- href = "https://nativebase.io/blogs/road-ahead-with-gluestack-ui"
262
- flexDir = "row"
263
- alignItems = "center"
264
- isUnderlined
265
- _text = { {
266
- color : "#52B3D0" ,
267
- fontSize : "md" ,
268
- fontWeight : "bold" ,
269
- } }
270
- >
271
- Read Updated Blog
272
- < Box ml = "1" >
273
- < RightArrow />
230
+ < Divider thickness = { 1 } />
231
+
232
+ < Box flexDirection = 'row' >
233
+ < Icon size = { 18 } color = 'black' >
234
+ < Svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" stroke-linecap = "round" stroke-linejoin = "round" >
235
+ < Path d = "m21 16-4 4-4-4" />
236
+ < Path d = "M17 20V4" />
237
+ < Path d = "m3 8 4-4 4 4" />
238
+ < Path d = "M7 4v16" />
239
+ </ Svg >
240
+ </ Icon >
241
+ < Box w = '93%' maxW = '100%' ml = "2" >
242
+ < Heading fontSize = 'md' > Migrate to gluestack-ui</ Heading >
243
+ < Text
244
+ fontSize = "sm"
245
+ textAlign = "left"
246
+ color = "muted.800"
247
+ _dark = { {
248
+ color : "muted.200" ,
249
+ } }
250
+ >
251
+ If you are working on a project with NativeBase, we recommend
252
+ using < Link href = "https://gluestack.io/ui/docs/migration/native-base-to-gluestack-ui" fontWeight = "bold" > @gluestack-ui/themed-native-base</ Link >
253
+ </ Text >
274
254
</ Box >
275
- </ Link >
276
- </ HStack >
255
+ </ Box >
256
+ </ Box >
277
257
</ Modal . Body >
278
258
</ Modal . Content >
279
259
</ Modal >
@@ -339,8 +319,6 @@ function Layout({
339
319
overflow = "hidden"
340
320
px = "4"
341
321
py = "5"
342
- fontSize = "sm"
343
- fontWeight = "medium"
344
322
borderWidth = { 1 }
345
323
_light = { {
346
324
bg : "#F1F1F1" ,
@@ -352,101 +330,36 @@ function Layout({
352
330
bg : "#171E2E" ,
353
331
borderColor : "muted.800" ,
354
332
} }
355
- width = "100%"
356
- direction = { { md : "row" } }
357
333
>
358
- < AlertIcon />
359
- < Text ml = "1" >
360
- IMPORTANT MESSAGE — If you are starting a new project with
361
- NativeBase, we recommend using{ " " }
362
- < a href = "https://gluestack.io/" > gluestack</ a > instead.{ " " }
363
- </ Text >
364
- < HStack
365
- alignItems = "center"
366
- mt = { { base : "4" , md : 0 } }
367
- ml = { { md : "2" } }
334
+ < Box
335
+ // maxW='1056'
336
+ fontSize = "sm"
337
+ fontWeight = "medium"
338
+ alignSelf = 'flex'
339
+ flexDirection = 'row'
340
+ alignItems = { { md : "center" } }
341
+ justifyContent = { { md : "center" } }
342
+ width = "100%"
368
343
>
369
- < a href = "https://gluestack.io/" >
370
- < Pressable
371
- borderWidth = { 1 }
372
- rounded = "sm"
373
- px = "3"
374
- py = "2"
375
- _light = { {
376
- borderColor : "muted.900" ,
377
- } }
378
- _dark = { {
379
- borderColor : "muted.50" ,
380
- } }
381
- _hover = { {
382
- bg : "primary.200" ,
383
- borderColor : "primary.200" ,
384
-
385
- _dark : {
386
- bg : "primary.700" ,
387
- borderColor : "primary.700" ,
388
- } ,
389
- } }
390
- _focus = { {
391
- bg : "primary.300" ,
392
- borderColor : "primary.300" ,
393
-
394
- _dark : {
395
- bg : "primary.800" ,
396
- borderColor : "primary.800" ,
397
- } ,
398
- } }
399
- _hover = { {
400
- bg : "primary.200" ,
401
- borderColor : "primary.200" ,
402
-
403
- _dark : {
404
- bg : "primary.700" ,
405
- borderColor : "primary.700" ,
406
- } ,
407
- } }
408
- _focus = { {
409
- bg : "primary.300" ,
410
- borderColor : "primary.300" ,
411
-
412
- _dark : {
413
- bg : "primary.800" ,
414
- borderColor : "primary.800" ,
415
- } ,
416
- } }
417
- pointerEvents = "none"
418
- >
419
- < Text
420
- fontSize = "sm"
421
- fontWeight = "medium"
422
- _light = { {
423
- color : "muted.900" ,
424
- } }
425
- _dark = { {
426
- color : "muted.50" ,
427
- } }
428
- >
429
- Explore gluestack
430
- </ Text >
431
- </ Pressable >
344
+ < AlertIcon height = { 18 } width = { 18 } />
345
+ < Text ml = "1" >
346
+ If you are starting a new project, we recommend using { " " }
347
+ < a href = "https://ui.gluestack.io/" target = "_blank" >
348
+ < Text fontWeight = "semibold" textDecorationLine = "underline" >
349
+ gluestack-ui
350
+ </ Text >
351
+ </ a >
352
+ { ". " }
353
+ For your existing projects, you can utilize{ " " }
354
+ < a href = "https://gluestack.io/ui/docs/migration/native-base-to-gluestack-ui" target = "_blank" >
355
+ < Text fontWeight = "semibold" textDecorationLine = "underline" >
356
+ @gluestack-ui/themed-native-base
357
+ </ Text >
432
358
</ a >
433
- < Text
434
- fontSize = "sm"
435
- fontWeight = "medium"
436
- _light = { {
437
- color : "muted.900" ,
438
- } }
439
- _dark = { {
440
- color : "muted.50" ,
441
- } }
442
- underline
443
- ml = "4"
444
- >
445
- < a href = "https://nativebase.io/blogs/road-ahead-with-gluestack-ui" >
446
- Know More
447
- </ a >
359
+ { " " }
360
+ (beta).
448
361
</ Text >
449
- </ HStack >
362
+ </ Box >
450
363
</ Stack >
451
364
{ /* </a> */ }
452
365
< Box flexDirection = "row" flex = { 1 } >
0 commit comments