Targeting: Audiences

You can customize user content according to the criteria you specify in the JOIN studio. To take into account audience-specific content, you can provide a prop customParameters. It is a key/value object.

πŸ“˜

Info

Only strings are accepted as values. If you need to pass an array, you can pass several values separated by a , (see Food paramater in the example below)

import { JoinStoriesView } from '@join-stories/react-native-widgets';

export default function Home() {
  return (
  	<SafeAreaView>
      <JoinStoriesView 
        alias="<your_join_alias>" 
        customParameters={{
          Food: 'burgers,vegetables',
          Age: '21',
        }}
      />
    </SafeAreaView>)
}
import { JoinStoriesCardView } from '@join-stories/react-native-widgets';

export default function Home() {
  return (
  	<SafeAreaView>
      <JoinStoriesCardView 
        alias="<your_join_alias>" 
        customParameters={{
          Food: 'burgers,vegetables',
          Age: '21',
        }}
      />
    </SafeAreaView>)
}
import { JoinStories } from "@join-stories/react-native-widgets";

export default function Home() {
  const openPlayer = () => {
  	JoinStories.startStandalonePlayer({ 
      alias: '<your_join_alias>',
      customParameters={{
        Food: 'burgers,vegetables',
        Age: '21',
      }}
    });
  }
  return (
  	<SafeAreaView>
    	<Button title="Open player" onPress={openPlayer} />
    </SafeAreaView>)
}