LoginSignup
0
0

More than 1 year has passed since last update.

native-base Flexの「Invalid YGDirection 'row' should ....」エラーについて

Posted at

error内容

スクリーンショット 2022-05-14 15.31.29.png

原因

import { Flex } from 'native-base'

// ...

  return (
    <Box pb={60}>
      <Flex
        direction={'row'} // 原因
        // ...
      >
        {/* contents */}
      </Flex>
    </Box>
  )

解決

import { Flex } from 'native-base'

// ...

  return (
    <Box pb={60}>
      <Flex
        flexDirection={'row'} // direction => flexDirection へ
        // ...
      >
        {/* contents */}
      </Flex>
    </Box>
  )

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0