Async-storage: Add warning to iOS `setItem` if value is not stringified

Created on 23 Oct 2019  路  2Comments  路  Source: react-native-async-storage/async-storage

Motivation

Values saved on iOS have to be stringified. We need a warning that will inform developer about it.

Description

Add a check for platform and type of value before saving - if it's not a string, displaying warning.

help wanted

Most helpful comment

@Krizzu I'll take this

All 2 comments

@Krizzu I'll take this

Thanks, done!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dominiczaq picture dominiczaq  路  22Comments

Krizzu picture Krizzu  路  36Comments

burhanahmed92 picture burhanahmed92  路  27Comments

santhanakrishnanstark picture santhanakrishnanstark  路  67Comments

hms111111 picture hms111111  路  24Comments