Question: **I write the code below,**

```
 source={require(`../../assets/images/${post.image}`)}

```

**in this {post.image} have dynamic values, its something like an array - img1.png,img2.png likewise**

**How to concatenate this path and values.
It's working on react but it's not working on react-native, How to solve that issue ?**

Answer: 
It is because `new Date()` returns the current date. It is November now, so the maximum date you can pass is 30.
To fix this first set year, then a month, and only then a date
Just use some robust and well tested library function for date parsing like `parseJSON` from [date-fns](https://date-fns.org/v2.29.3/docs/parseJSON) rather than re-inventing the wheel.