السلام عليك لقد كمت بتجربه هاذا ولاكنه يتم اضافه مكون يتم ظهور المكون الجديد مع المكونات السابقه
ولاكن المشكله في عدم ظهور البيانات في المكون
const body ={
id : new Date(),
amount : amount,
notice : notice,
data : data,
type : type
}
const all = [...notes , body]
try{
const value = await AsyncStorage.getItem("note")
const n = JSON.parse(value)
const allDa = [all ,...n]
const da = JSON.stringify(allDa)
const values = await AsyncStorage.setItem('note',da,(() => props.navigation.navigate("Selected")))
setNotes(allDa)
وللمعرفه لقد قمت بازاله
const allDa =[...parsed]
من شاشه العرض ....
فما هو الخطا وما المطلوب لذالك