React-native-ui-kitten: Spinner fails to render

Created on 13 Sep 2019  路  2Comments  路  Source: akveo/react-native-ui-kitten

Issue type

I'm submitting a ... (check one with "x")

  • [x] bug report
  • [ ] feature request

Issue description

Current behavior:

Spinner fails to render with:

Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s%s, undefined, You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

Expected behavior:
The Spinner would render.

Steps to reproduce:
I'm just adding the spinner to the code and it doesn't work. Removing the spinner makes the component render

Related code:

import { Text, List, withStyles, Spinner } from 'react-native-ui-kitten'
//...
function Stations({stations, loading, error, themedStyle}) {
    return (
      <SafeAreaView>
        <View style={{...themedStyle.container, ...themedStyle.containerBlankState }}>
          <Spinner />
          <Text category="h4">Carregando os dados das suas esta莽玫es</Text>
        </View>
      </SafeAreaView>
    )
}

Other information:

I'm running eva-design.eva ^1.1.0-beta.1

"@eva-design/eva": "^1.1.0-beta.1",
"react-native-ui-kitten": "^4.1.1",

OS, device, package version

Running on IPhone XR 12.1 Simulator

Most helpful comment

Hi! Please upgrade UI Kitten to beta, since it鈥檚 not available in this version

npm i react-native-ui-kitten@beta

All 2 comments

Hi! Please upgrade UI Kitten to beta, since it鈥檚 not available in this version

npm i react-native-ui-kitten@beta

Thanks, it works like a charm.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sarmadkung picture sarmadkung  路  3Comments

nonameolsson picture nonameolsson  路  3Comments

simonsankar picture simonsankar  路  3Comments

bkwhite picture bkwhite  路  3Comments

domsterthebot picture domsterthebot  路  3Comments