toystars / react-native-multiple-select

Simple multi-select component for react-native
MIT License
566 stars 315 forks source link

Add support to override templates for "No item to display." and "Add {item.name} (tap or press return)" with custom user messages. #73

Open chetanyakan opened 6 years ago

chetanyakan commented 6 years ago

Issue summary

Add support to override templates for "No item to display." and "Add {item.name} (tap or press return)" with custom user messages.

Library versions

react-native: 0.53.0 react-native-multiple-select: 0.4.1

Steps to Reproduce

  1. Pass empty array in selectedItems

  2. See "No item to display." message.

  3. Set canAddItem to true

  4. See "Add {item.name} (tap or press return)" message while editing text.

Expected Behavior

We should be able to pass our own template or somehow override this message.

Actual Behavior

This support is not there.