Skip to content

sanju3/react-native-show-more-bubbles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-native-show-more-bubbles

React native textinput with show hide excess data feature

Installation

yarn add react-native-show-more-bubbles

Basic usage

  • preSelectedValues(array)(*required): selected values
  • onChangeBubbles(func)(*required): get the entered data
  • wrapperStyles(object)(*required): component wrapper styles required to add width style
import React, {useState} from 'react';
import {View} from 'react-native';
import {MainBubble, unFocus} from 'react-native-show-more-bubbles';

const App = () => {
  const [bubbles, setBubbles] = useState([]);
  return (
    <View onStartShouldSetResponder={unFocus}>
      <MainBubble
        suggestions={['suggestion 01', 'suggestion 02', 'suggestion 03', 'suggestion 04']}
        preSelectedValues={bubbles}
        onChangeBubbles={b => setBubbles(b)}
        mainTitle={'Something'}
        wrapperStyles={{width: 300, borderColor: 'red', borderWidth: 1}} // width is required
      />
    </View>
  );
};

export default App;

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published