Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16552

Access RNCAsyncStorage from extension app written in swift

$
0
0

So I have host app written in React Native and we are using RNCAsyncStorage to save to database. Now I have created keyboard extension app that written in Swift. So I've already done this https://stackoverflow.com/a/59263000/1351913 and already have access to RNCAsyncStorage in Swift. So now I tried to convert this https://github.com/react-native-community/async-storage/issues/80#issuecomment-483223913 into Swift but can't figuring out how. What I need is actually just getItem but looks like only available in obj-c class is multiGet. If anyone know how to do it really appreaciate it or knows how other way to get item. I am thinking of accessing RNCAsyncStorageDelegate to change the saving method like in here https://react-native-community.github.io/async-storage/docs/advanced/brownfield but have no idea also how to do it in swift 😅


Viewing all articles
Browse latest Browse all 16552

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>