onPress

index

item

key

)}

/View

);

In Flutter, you assign a local variable or function marked
final with the property received in the parameterized constructor.

Local storage

If you don’t need to store a lot of data, and it doesn’t require
structure, you can use shared_preferences which allows you to
read and write persistent key-value pairs of primitive data
types: booleans, floats, ints, longs, and strings.

How do I store persistent key-value pairs that are global to the app?

In React Native, you use the setItem and getItem functions
of the AsyncStorage component to store and retrieve data
that is persistent and global to the app.

// React Native

await

AsyncStorage

setItem

counterkey

json