KjellConnelly / react-native-shared-group-preferences

127 stars 57 forks source link

Fix error in iOS methods setItem and getItem, callback function must be last parameter. #6

Closed mtzfactory closed 6 years ago

mtzfactory commented 6 years ago

Hi,

Javascript needs that function methods passed as parameters must be the last one, therefore the order has to change in the iOS definition.

Hope this helps...

Error: Argument 3 ({}) of RNReactNativeSharedGroupPreferences.setItem or getItem should be a function.

screen shot 2018-10-01 at 20 43 57