如何在 React Native 中创建药丸输入字段?

How to create pills input fields in react native?

我正在寻找一种使 "dynamic pills" 像下面的方法一样的方法,但在 React Native 和 Redux 中。 https://codepen.io/silkine/pen/pPxJOX

   <div id="container"></div>
    <div class="tim">this codepen is dedicated to
     <a href="https://twitter.com/twholman">@twholman</a> 
    </div>

1) 有谁知道它们叫什么所以更容易 google 教程?

2) 我正在尝试将 css 转换为 gulp 并将 JS 复制粘贴到 RN 中,但将反应语法更改为 RN。得到很多错误。这是一条好路吗?或者你知道更简单的吗?也许某个地方有教程?

谢谢!

  1. 它叫徽章。
  2. 您可以使用 UI 工具包,例如 react-native-elements or you can check out code of this element in github 存储库。使用 'children' 属性传递 TextInput。