hybriteq / react-native-floating-bubble

A simple Facebook Chat Head like bubble for react native
MIT License
209 stars 58 forks source link

Can open app when bubble is touched #12

Closed jsdaniell closed 3 years ago

jsdaniell commented 3 years ago

To work you have to import one more method from the library called reopenApp:

import {
  initialize, requestPermission, showFloatingBubble, reopenApp
} from 'react-native-floating-bubble'

To use this on the application, add this method on listener:

const subscriptionPress = DeviceEventEmitter.addListener('floating-bubble-press', () => {
      reopenApp()
    })