Skip to content

Commit a4debf1

Browse files
committed
add interpolation hint
1 parent 91318f1 commit a4debf1

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

challenges/ecosystem/02.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,10 @@ module.exports = {
178178
"$schema": "http://json.schemastore.org/prettierrc",
179179
"semi": true,
180180
"singleAttributePerLine": true,
181-
"trailingComma": "none",
181+
"trailingComma": "all",
182182
"tabWidth": 2,
183-
"singleQuote": false
183+
"singleQuote": false,
184+
"endOfLine": "CRLF" // for windows users only
184185
}
185186
```
186187

challenges/foundation/04.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,12 @@ Implement a `FlatList` for the data that is fetched.
7878
- [ ] Render `Item` with `name`, `model`, `crew`, `hyperdrive_rating` and `cost_in_credits` (_Notice on the documentation we use an implicit return_).
7979
- [ ] If you want to add an `Image` just use this api to generate random images `https://picsum.photos/seed/car/400/200`, you can change `car` with something else to generate a new image.
8080

81+
**🔭 Hint:** use varialbe interpolation with `${}` to generate new seeds for each image.
82+
83+
```typescript
84+
<Image source={{uri: `https://picsum.photos/seed/${item.name}/400/200`}} />
85+
```
86+
8187
## 👽 Bonus
8288

8389
- [ ] Use a [Card to render items](https://callstack.github.io/react-native-paper/docs/components/Card/)

0 commit comments

Comments
 (0)