Check out example codes for "convert dictionary to array swift". It will help you in understanding the concepts better.

Code Example 1

let dic = ["1":"a", "2":"b", "3":"c"]

let arrayOfKeys = Array(dic.keys.map{ $0 })
print(arrayOfKeys) // [1, 2, 3]
let arrayOfValues = Array(dic.values.map{ $0 })
print(arrayOfValues) // [a, b, c]

Learn ReactJs, React Native from akashmittal.com