Skip to content

Toast message not showing in Android devices #69

Description

@akhilsanker

Hi,
Using react-native-easy-toast": "^1.1.0, toast position bottom, the toast message is not appearing in Android devices but works fine in iOS devices.

Does anyone have any workaround to solve this issue? Any suggestion is appreciable.

Thanks

Activity

  1. sesm commented on Mar 15, 2019

    @sesm

    Are you rotating the screen? There is a know issue with screen rotation, see #56

  2. akhilsanker commented on Mar 15, 2019

    @akhilsanker
    Author

    Hi @sesm ,
    Thanks for your response and is well appreciated.
    My app has both portrait and landscape mode, but its not working in any orientation.

    Thanks

  3. sesm commented on Mar 15, 2019

    @sesm

    Does the toast show up with position: 'top'? If yes, then it may be the same issue anyway.

  4. akhilsanker commented on Mar 15, 2019

    @akhilsanker
    Author

    Hi @scue ,

    Its position: 'top'.
    Do you have any workaround to solve this problem?

    Thanks

  5. sesm commented on Mar 15, 2019

    @sesm

    No, I never had any problems with this library for position: 'top'

  6. maximus123123 commented on Mar 25, 2019

    @maximus123123

    zIndex?

  7. maximus123123 commented on Apr 3, 2019

    @maximus123123

    This is working on android with position 'bottom' (none rotated screen through).
    I made the toast component in my app.js just below my appcontainer from react navigation, then I made a deviceemitter listener, which from other screens I emit the 'toast'

    This will allow the toast to show even when changing screen

    componentDidMount(){
        DeviceEventEmitter.addListener('toast', (e) => {
          this.refs.toast.show(e);
        });
    }
    render(){
    return(
          <View style={{flex: 1}}>
          <AppContainer/>
          <Toast position='bottom' ref="toast"/>
          </View>)
    }
    
    .......
    on another screen:
        DeviceEventEmitter.emit('toast', 'Some Message');
    
    
  8. akhilsanker commented on Apr 6, 2019

    @akhilsanker
    Author

    Hi @maximus12312,

    I have emitted the event from the screen, in which the toast is shown, but it is not working.
    Do I need to emit the event from app.js file itself.
    Or do you have any other workaround.
    Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions