Giter Site home page Giter Site logo

kirillgudkov / react-native-in-app-message Goto Github PK

View Code? Open in Web Editor NEW
135.0 2.0 15.0 67 KB

React Native in-app notification component

Home Page: https://www.npmjs.com/package/react-native-in-app-message

License: MIT License

JavaScript 66.00% Objective-C 30.16% Ruby 3.84%
npm react-native ui

react-native-in-app-message's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

react-native-in-app-message's Issues

Support For Left/Right Swipe!!

Hello @KirillGudkov thank you for this awesome package but it is possible to add swipe-based gestures like Left Gesture and right gesture

Warning: Require cycle

I'm getting the following warning:

Require cycle: node_modules/react-native-in-app-message/index.js -> node_modules/react-native-in-app-message/src/Noification/index.js -> node_modules/react-native-in-app-message/src/Noification/Notification.android.js -> node_modules/react-native-in-app-message/src/Noification/NotificationBase.js -> node_modules/react-native-in-app-message/index.js
Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.

onHide does not work

hello in the latest react native version onHide method is not hiding notifications it keeps bringing back old notification 0.66

Using customComponent, other button's onPress does not work.

when I use customComponent, I modify some button to do various actions, but just onPress of Notification is done.
I commented onPress, so click on sample buttons (in notification) caused crash due to undefined function.
how ca I handle it?

how to change the text dynamically ?

how to change the text dynamicly ?

console.log(this.notification)
this.notification.props.text = "Somethin else"

then calling .show() shows the initial value not the changed value

Change the root container

Hi!

Trying out your in app messages and they work great!
One question though, would it be possible to add a feature so we can customize the entire notification, like the root container? Right now the custom component is pretty locked to cover 90ish% of the screen etc and we would like to have some messages being quiet small.

The androidStyle.container and androidStyle.content, same for IOS.

<TouchableOpacity style={androidStyle.container} activeOpacity={1} onPress={onPress}>
	<View style={androidStyle.content}>
		{customComponent ? this.renderCustomComponent() : this.renderOwnComponent()}
	</View>
</TouchableOpacity>

How to use in side a functional component

Hey, how would I would use this inside a functional component instead of class component, I am new to this but I guess I cant access this in a functional component and don't understand how to access the Notification component to trigger the show method.

cannout using ref in typescript

hi I love your lib, but I have an issue when I'm using react ref for this project
TypeError: null is not an object (evaluating

for registering ref

onPress does not work on Android

The onPress prop doesn't work on Android on RN 0.61.5.

From looking at the source code, it looks to be because the notification is using position: absolute. This breaks the <TapGestureHandler>, as I've verified the onTapHandlerStateChange function isn't called on Android.

For more info about this issue see:
facebook/react-native#22397

I was get empty notification show up when I click background notification

hi, I like your lib, but I have an issue, when I clicking background notification, it will automatically show a empty react-native-in-app message, I was handle in useEffect default state :

notifRef.current?.hide()

when there is a notification, it will trigger

notifRef.current?.show()

but I dont know why your lib sometimes show empty in app message pop uping

[Android] Can't press in-app message

Hey, and thanks for this great package.

While on iOS it is functioning perfectly, on Android trying to press the Notification doesn't work, it ends up pressing other buttons underneath.

I'm using a custom component, but tried without it and the same happens. Already tried setting zIndex on both the Notification component and my custom one.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.