0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

React-Native-elementsで透過ボタン

Last updated at Posted at 2018-12-04

RN-elementsのclearが反映されない。。。

検索エンジンで「React-Native-elements」で調べると、1.0.0-beta7が表示される。
スクリーンショット 2018-12-04 13.22.48.png

下のrefarenceにボタンを透過する「clear」が表記されているが、これを書いても反映されない
スクリーンショット 2018-12-04 13.23.32.png

バージョンを確認すると、今は0.19.1らしい。

0.19.1のButton Componentsはこれ
スクリーンショット 2018-12-04 13.25.19.png

下のRefarenceに「clear」が消えてます。
代わりに「transparent」が追加されています。

スクリーンショット 2018-12-04 13.32.33.png

transparentで書いてみた

一応比較として、デフォルトも書きました。

        <Button
          style={{marginVertical: 20}}
          title="default"
        />

        <Button
          title="clear Button"
          transparent
          color="blue"
        />

スクリーンショット 2018-12-04 13.38.57.pngスクリーンショット 2018-12-04 13.38.40.png

無事ボタン透過できました。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?