client.getCustomItems()

Returns a Promise that resolves to the custom items in the current event.

client.getCustomItems().then(items=>console.log(items))

client.getExhibitors()

Returns a Promise that resolves to the exhibitors in the current event.

client.getExhibitors().then(exhibitors=>console.log(exhibitors))

client.getSessions()

Returns a Promise that resolves to the sessions in the current event.

client.getSessions().then(sessions=>console.log(sessions))

client.getSpeakers()

Returns a Promise that resolves to the speakers in the current event.

client.getSpeakers().then(speakers=>console.log(speakers))

client.getPrimaryColor()

Returns a promise that resolves to the primary color used in the event app, to match event branding.

'#009acd'

client.getSecondaryColor() and client.getTertiaryColor() are also automatically
generated based on the primary color, designed to be pleasing complements when
other branded colors are desired.

Color

If additional branded colors are desired, a Color class is exported with some
useful tranformations available, e.g.

newColor(primaryColor).shiftHue(1/2).limitLightness(0.8).rgbString()

Color functions include

shiftHue(shiftAmount) Shifts the color around the color wheel. A shiftAmount of 1/2
returns the color on the opposite side of the color wheel.

limitLightness(maxLightness)

minLightness(minLightness)

limitSaturation(maxSaturation)

minSaturation(minSaturation)

rgb() returns an object with {r,g,b} properties

hsv() returns an object with {h,s,v} properties

rgbString() returns a color string accepted by React Native styles

client.getToken()

Returns a Promise which resolves to a valid access token. Normally used
indirectly by other client libraries to access the DoubleDutch platform.

client.getToken().then(token=>/* Use the token. */)

TitleBar

React Native component useful for interacting with the title bar that is native
to DoubleDutch apps.

In the simulator, a title bar will be rendered as React Native components. In a
native DoubleDutch iOS or Android app, the native app provides the title bar.
<TitleBar /> abstracts away these differences to provide a simulated
experience that matches a real DoubleDutch app.

<TitleBarclient={client}title="Extension title"signin={this.signin}/>

Props

client. The client imported from @doubledutch/rn-client. Required for
setting the native title text in a DoubleDutch app.

title. The desired text of the native title bar. Requires client prop to
be set.

signin. (Optional) Promise that will resolve when signin to a backend is
complete. If specified, the title bar will show connection status while
authenticating to your backend. E.g. if using
@doubledutch/firebase-connector,
this can be the Promise returned by fbc.signin().

Avatar

React Native component that shows a circular avatar image of an attendee, or
his/her initials if no image is available.

<Avataruser={user}size={25}client={client}roundedness={1.0}/>

Props

user. The attendee whose avatar should be displayed. This can be
the current attendee resolved from the client.getCurrentUser() Promise,
to display the avatar of the attendee currently viewing the app, or another
attendee object.

size. The diameter of the avatar image.

client. The rn-client object used to look up not-yet-known images in the background.