Upgrade to Expo 37 throws a lot of errors

Please provide the following:

  1. SDK Version: 37
  2. Platforms(Android/iOS/web/all): iOS

I upgraded to Expo 37 and removed ExpoKit from my project. I receive a lot of these errors: Invariant violation: No callback found with cbID and callID. Feel helpless with this one.

I removed all code except this one in the App and I still get multiple such errors:

import React from 'react'
import { registerRootComponent } from 'expo'
import { View, Text } from 'react-native'
// import App from './App'

function App2() {
  return (
    <View style={{ backgroundColor: '#fee', flex: 1, justifyContent: 'center', alignItems: 'center' }}>
      <Text>Hello world</Text>
    </View>
  )
}

// registerRootComponent calls AppRegistry.registerComponent('main', () => App);
// It also ensures that whether you load the app in the Expo client or in a native build,
// the environment is set up appropriately
registerRootComponent(App2)

How did you go about upgrading?

If you can’t get it to work in your old project, try creating a new one and copying your code into it.

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