Using flow with Expo SDK v26

Right now the only thing in my CRNA app that flow complains about is my expo import…

import { SecureStore } from ‘expo’;

Just wondering if there is anything I should know about compatibility of versions.

In my package.json I have flow-bin ^0.66.0 and flow-typed ^2.3.0.


Environment:
OS: macOS High Sierra 10.13.3
Node: 9.11.1
Yarn: 1.5.1
npm: 5.6.0
Watchman: 4.9.0
Xcode: Xcode 9.2 Build version 9C40b
Android Studio: Not Found

Packages: (wanted => installed)
expo: 26.0.0 => 26.0.0
react: ^16.3.0 => 16.3.1
react-native: https://github.com/expo/react-native/archive/sdk-26.0.0.tar.gz => 0.54.2

Diagnostics report:
https://exp-xde-diagnostics.s3.amazonaws.com/arnoldbird-215c108c-b3e3-41d7-b054-dd88c51f9da6.tar.gz

I think I just have the wrong import.

This works…

import Expo from 'expo'

var str = 'mystring'
Expo.SecureStore.setItemAsync('mykey', str)

var something = await Expo.SecureStore.getItemAsync('mykey', str)

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.