diff --git a/e2e/__snapshots__/templates.test.js.snap b/e2e/__snapshots__/templates.test.js.snap index 6043208a9..681bce5a5 100644 --- a/e2e/__snapshots__/templates.test.js.snap +++ b/e2e/__snapshots__/templates.test.js.snap @@ -6235,12 +6235,14 @@ type HitProps = { function Hit({ hit }: HitProps) { return ( - - - - - - + <> + + + + + + + ); } diff --git a/src/templates/React InstantSearch Hooks Native/App.tsx.hbs b/src/templates/React InstantSearch Hooks Native/App.tsx.hbs index 681b83673..bc993cf1f 100644 --- a/src/templates/React InstantSearch Hooks Native/App.tsx.hbs +++ b/src/templates/React InstantSearch Hooks Native/App.tsx.hbs @@ -42,20 +42,22 @@ type HitProps = { function Hit({ hit }: HitProps) { return ( - {{#if attributesToDisplay}} - - - - {{#each attributesToDisplay}} - {{#unless @first}} - - - - {{/unless}} - {{/each}} - {{else}} - {JSON.stringify(hit).slice(0, 100)} - {{/if}} + <> + {{#if attributesToDisplay}} + + + + {{#each attributesToDisplay}} + {{#unless @first}} + + + + {{/unless}} + {{/each}} + {{else}} + {JSON.stringify(hit).slice(0, 100)} + {{/if}} + ); } diff --git a/src/templates/React InstantSearch Hooks Native/package.json b/src/templates/React InstantSearch Hooks Native/package.json index 4e8e5f1ab..b2823d799 100644 --- a/src/templates/React InstantSearch Hooks Native/package.json +++ b/src/templates/React InstantSearch Hooks Native/package.json @@ -25,7 +25,7 @@ "@babel/core": "^7.12.9", "@types/react": "~17.0.21", "@types/react-native": "~0.64.12", - "expo-cli": "5.1.1", + "expo-cli": "5.5.1", "typescript": "~4.3.5" } }