From cb9c758465d2b9fb6627ac2e5251e13eb485e2cc Mon Sep 17 00:00:00 2001 From: Fahri Gedik Date: Fri, 15 May 2026 14:55:55 +0300 Subject: [PATCH] docs(react-native): escape JSX double-braces for Scriban Scriban treats `{{ ... }}` inside markdown as a template expression and chokes on the comma inside JSX style props (e.g. `contentContainerStyle={{ flexGrow: 1, paddingBottom: 96 }}`). Wraps every literal JSX `{{ ... }}` occurrence with the `{%{{{ ... }}}%}` escape used elsewhere in the docs, covering the 13 sites spread across the DataList, AbpSelect, BookStoreNavigator, BottomTabNavigator and CreateUpdateBookForm code blocks. Pure docs change, no semantic effect on the rendered tutorial. Reported by the markdown linter: index.md:161:43: error: [ScribanParseError] Invalid token found `,`. --- .../en/tutorials/mobile/react-native/index.md | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/docs/en/tutorials/mobile/react-native/index.md b/docs/en/tutorials/mobile/react-native/index.md index ba8180f5e2..757765681d 100644 --- a/docs/en/tutorials/mobile/react-native/index.md +++ b/docs/en/tutorials/mobile/react-native/index.md @@ -158,7 +158,7 @@ function DataList({ data={items} keyExtractor={(item, index) => item?.id?.toString() ?? index.toString()} renderItem={render} - contentContainerStyle={{ flexGrow: 1, paddingBottom: 96 }} + contentContainerStyle={%{{{ flexGrow: 1, paddingBottom: 96 }}}%} refreshControl={} onEndReached={onEndReached} onEndReachedThreshold={0.4} @@ -255,7 +255,7 @@ function AbpSelect({ String(item.id)} - style={{ maxHeight: 360 }} + style={%{{{ maxHeight: 360 }}}%} ItemSeparatorComponent={() => ( )} @@ -376,7 +376,7 @@ export default function BookStoreStackNavigator() { headerShadowVisible: false, headerRight: () => ( navigation.goBack()} hitSlop={8}> - {t('AbpUi::Cancel')} + {t('AbpUi::Cancel')} ), })} @@ -391,7 +391,7 @@ export default function BookStoreStackNavigator() { headerShadowVisible: false, headerRight: () => ( navigation.goBack()} hitSlop={8}> - {t('AbpUi::Cancel')} + {t('AbpUi::Cancel')} ), })} @@ -436,7 +436,7 @@ export default function BottomTabNavigator() { + screenOptions={%{{{ /* ... existing screen options ... */ }}}%}> {showBookStore ? ( @@ -857,7 +857,7 @@ function CreateUpdateBookForm({ submit, book, authors }: CreateUpdateBookFormPro - + {/* Name */} @@ -869,7 +869,7 @@ function CreateUpdateBookForm({ submit, book, authors }: CreateUpdateBookFormPro onBlur={form.handleBlur('name')} error={showError('name')} autoCapitalize="sentences" - style={{ backgroundColor: primaryContainer }} + style={%{{{ backgroundColor: primaryContainer }}}%} /> {renderError('name')} @@ -885,7 +885,7 @@ function CreateUpdateBookForm({ submit, book, authors }: CreateUpdateBookFormPro editable={false} error={showError('authorId')} right={} - style={{ backgroundColor: primaryContainer }} + style={%{{{ backgroundColor: primaryContainer }}}%} /> @@ -903,7 +903,7 @@ function CreateUpdateBookForm({ submit, book, authors }: CreateUpdateBookFormPro editable={false} error={showError('type')} right={} - style={{ backgroundColor: primaryContainer }} + style={%{{{ backgroundColor: primaryContainer }}}%} /> @@ -925,7 +925,7 @@ function CreateUpdateBookForm({ submit, book, authors }: CreateUpdateBookFormPro editable={false} error={showError('publishDate')} right={} - style={{ backgroundColor: primaryContainer }} + style={%{{{ backgroundColor: primaryContainer }}}%} /> @@ -942,7 +942,7 @@ function CreateUpdateBookForm({ submit, book, authors }: CreateUpdateBookFormPro onBlur={form.handleBlur('price')} error={showError('price')} keyboardType="decimal-pad" - style={{ backgroundColor: primaryContainer }} + style={%{{{ backgroundColor: primaryContainer }}}%} /> {renderError('price')} @@ -994,7 +994,7 @@ function CreateUpdateBookForm({ submit, book, authors }: CreateUpdateBookFormPro {t('BookStore::PublishDate')} - + setDateModalVisible(false)} className="px-4 py-2 rounded-md"> - {t('AbpUi::Cancel')} + {t('AbpUi::Cancel')} {