ReactNative for WebのTextInputでアウトラインを消す方法
650 ワード
はじめに
ReactNative for WebのTextInputにてフォーカスした際に出てくる線(アウトライン)を削除したい。
解決策
outlineWidth: 0
を指定すれば解決するがアプリだと落ちてしまうので以下の指定をすると良い
<TextInput
style={{
width: '100%',
...Platform.select({
web: {
outlineWidth: 0
}
})
}}
/>
Author And Source
この問題について(ReactNative for WebのTextInputでアウトラインを消す方法), 我々は、より多くの情報をここで見つけました https://qiita.com/AkiraTameto/items/784a94255cea55890726著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .