react-native-contrib / react-native-heyzap

A Heyzap plugin for React Native
MIT License
5 stars 1 forks source link

Allow passing start options #7

Open ekilah opened 8 years ago

ekilah commented 8 years ago

The Heyzap start options are an unsigned integer bitmask passed to + (void) startWithPublisherID:(NSString *)publisherID andOptions:(HZAdOptions)options. I don't know what the code is doing with the options right now - it appears they are being returned as an array to the js that called the bridge's start method.

hassankhan commented 8 years ago

Yeah it was kind of just a test to see if constants were being exported back to JS, I'll be getting rid of that in the future.

As it stands now, the only "option" that actually works aside from the callbacks is the publisherId. I'm definitely looking into fixing it, I've got a local branch with all HZ* constants exported and I wanted to use them in React.

ekilah commented 8 years ago

cool, yeah once those constants are exported and available to the JS environment it'll be easy to do!