Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
InteractionManager.runAfterInteractions(() => {
emitter.emit("reclip-calendar");
});
});
const dismissFilters = () => {
emitter.emit("filters");
};
const onEvent = () => {
return (dispatch, getState) => {
const {
filters: { day, time, notNow },
events: { calendar, bounds }
} = getState();
emitter.emit("filters");
if (!time.trim().length) {
dispatch({
type: "events/set",
payload: {
notNow,
day,
upNext: calendar.find(events => events.iso === day.iso).data
}
});
} else {
const expandedTime = detruncateTime(time);
const searchTime = moment(`${day.title} ${expandedTime}`, "dddd h:mma");
if (searchTime.isBefore(moment(), "minute")) {
searchTime.add("7", "d");
}
_onPressIn = () => {
const { item, type } = this.props;
let bounds;
if (type !== "Search") {
bounds = item._source.bounds;
} else {
bounds = item.geometry.viewport;
}
this._resetOnRelease = true;
emitter.emit("preview-bounds", bounds);
};
export function closeOverlay() {
emitter.emit('drawer-close');
}
onPress={() => {
emitter.emit("blur-interested");
dispatch({
type: "interested/set",
payload: {
event: null
}
});
}}
style={styles.button}
text = item.formatted_address;
}
setEvents({
refreshing: true,
bounds,
queryType: "City"
});
setLocation({
lastQuery: text,
text,
bounds: null
});
emitter.emit("blur-location-box", this.props.id);
emitter.emit("fit-bounds", bounds);
};
onPress={() => {
dispatch(User.saveProfile());
dispatch({
type: "user/set",
payload: {
showContacts: true
}
});
emitter.emit("scroll-intro-contacts");
}}
/>
_onChangeText = text => {
const showCompletions = text.length > this.props.text.length;
this.props.set({
text
});
if (showCompletions) {
emitter.emit("show-completions");
}
};
_onSelect = () => {
if (ANDROID) {
emitter.emit("deselect-marker");
emitter.on("deselect-marker", this._onDeselect);
}
this.setState({
selected: true
});
this.props.selectEvent(this.props.data._id);
};