React-native-ble-plx: BleManager with Redux

Created on 10 Apr 2018  路  5Comments  路  Source: Polidea/react-native-ble-plx

Hello , i want to use ble manager in different component and the best way i think is with redux , but i 'dont know how to use it with BleManager() . thanks for your help

stale

Most helpful comment

I don't know if you, @karimraoudy was able to get an example for understand more, but @Cierpliwy did a perfect example.
https://github.com/Cierpliwy/SensorTag

All 5 comments

You can create BleManager in redux-saga's generator which is then added to your redux as middleware. With redux-saga it is quite easy to handle asynchronous actions and emit new ones which will change your store and effectively your components.

thank you @Cierpliwy for you're ansewr but can you give me some exemple to understand more

@Cierpliwy I am finally getting a grasp on redux-saga. I think it's going to help with alot of my issues. Can you provide a basic structure for how you would set up the ble manager with redux saga? Specifically to properly prepare for monitoring characteristics.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

I don't know if you, @karimraoudy was able to get an example for understand more, but @Cierpliwy did a perfect example.
https://github.com/Cierpliwy/SensorTag

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mitaxe picture mitaxe  路  3Comments

cltsang picture cltsang  路  4Comments

brycejacobs picture brycejacobs  路  5Comments

SlavaInstinctools picture SlavaInstinctools  路  4Comments

rottenoats picture rottenoats  路  4Comments