Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export async function startAppModernUI() {
/** Ask for notificatiosn on startup */
store.dispatch(registerDeviceForNotifications())
const accountsIcon = await FeatherIcons.getImageSource('check-circle', 26)
const contactsIcon = await FeatherIcons.getImageSource('users', 26)
const contactIcon = await FeatherIcons.getImageSource('user', 26)
const settingsIcon = await FeatherIcons.getImageSource('settings', 26)
const notificationsIcon = await FeatherIcons.getImageSource('bell', 26)
const AndroidOptions = {
appStyle: {
tabBarBackgroundColor: colors.brand,
tabBarButtonColor: '#ffffff',
tabBarHideShadow: true,
tabBarSelectedButtonColor: '#63d7cc',
tabBarTranslucent: false,
tabFontSize: 10,
selectedTabFontSize: 12,
},
drawer: {},
}
const IOSOptions = {
tabsStyle: {
tabBarBackgroundColor: colors.white,
export async function startAppModernUI() {
/** Ask for notificatiosn on startup */
store.dispatch(registerDeviceForNotifications())
const accountsIcon = await FeatherIcons.getImageSource('check-circle', 26)
const contactsIcon = await FeatherIcons.getImageSource('users', 26)
const contactIcon = await FeatherIcons.getImageSource('user', 26)
const settingsIcon = await FeatherIcons.getImageSource('settings', 26)
const notificationsIcon = await FeatherIcons.getImageSource('bell', 26)
const AndroidOptions = {
appStyle: {
tabBarBackgroundColor: colors.brand,
tabBarButtonColor: '#ffffff',
tabBarHideShadow: true,
tabBarSelectedButtonColor: '#63d7cc',
tabBarTranslucent: false,
tabFontSize: 10,
selectedTabFontSize: 12,
},
drawer: {},
}
const IOSOptions = {
tabsStyle: {
tabBarBackgroundColor: colors.white,
tabBarSelectedButtonColor: colors.brand,
export async function startAppModernUI() {
/** Ask for notificatiosn on startup */
store.dispatch(registerDeviceForNotifications())
const accountsIcon = await FeatherIcons.getImageSource('check-circle', 26)
const contactsIcon = await FeatherIcons.getImageSource('users', 26)
const contactIcon = await FeatherIcons.getImageSource('user', 26)
const settingsIcon = await FeatherIcons.getImageSource('settings', 26)
const notificationsIcon = await FeatherIcons.getImageSource('bell', 26)
const AndroidOptions = {
appStyle: {
tabBarBackgroundColor: colors.brand,
tabBarButtonColor: '#ffffff',
tabBarHideShadow: true,
tabBarSelectedButtonColor: '#63d7cc',
tabBarTranslucent: false,
tabFontSize: 10,
selectedTabFontSize: 12,
},
drawer: {},
}
async setDefaultButtons() {
const send = await Ionicons.getImageSource('ios-paper-plane', 26, '#FFFFFF')
const edit = await FeatherIcon.getImageSource('edit', 26, '#FFFFFF')
const share = await FeatherIcon.getImageSource('share', 26, '#FFFFFF')
this.props.navigator.setButtons({
rightButtons: [
{
id: 'edit',
title: 'Edit',
},
],
})
}
componentDidMount() {
FeatherIcon.getImageSource('trash', 26, '#FFFFFF').then(trash => {
this.props.navigator.setButtons({
rightButtons: [
{
id: 'trash',
icon: trash,
},
],
})
})
}
export async function startAppModernUI() {
/** Ask for notificatiosn on startup */
store.dispatch(registerDeviceForNotifications())
const accountsIcon = await FeatherIcons.getImageSource('check-circle', 26)
const contactsIcon = await FeatherIcons.getImageSource('users', 26)
const contactIcon = await FeatherIcons.getImageSource('user', 26)
const settingsIcon = await FeatherIcons.getImageSource('settings', 26)
const notificationsIcon = await FeatherIcons.getImageSource('bell', 26)
const AndroidOptions = {
appStyle: {
tabBarBackgroundColor: colors.brand,
tabBarButtonColor: '#ffffff',
tabBarHideShadow: true,
tabBarSelectedButtonColor: '#63d7cc',
tabBarTranslucent: false,
tabFontSize: 10,
selectedTabFontSize: 12,
},
drawer: {},
}
const IOSOptions = {
tabsStyle: {
export async function startAppModernUI() {
/** Ask for notificatiosn on startup */
store.dispatch(registerDeviceForNotifications())
const accountsIcon = await FeatherIcons.getImageSource('check-circle', 26)
const contactsIcon = await FeatherIcons.getImageSource('users', 26)
const contactIcon = await FeatherIcons.getImageSource('user', 26)
const settingsIcon = await FeatherIcons.getImageSource('settings', 26)
const notificationsIcon = await FeatherIcons.getImageSource('bell', 26)
const AndroidOptions = {
appStyle: {
tabBarBackgroundColor: colors.brand,
tabBarButtonColor: '#ffffff',
tabBarHideShadow: true,
tabBarSelectedButtonColor: '#63d7cc',
tabBarTranslucent: false,
tabFontSize: 10,
selectedTabFontSize: 12,
},
drawer: {},
}
const IOSOptions = {
async setDefaultButtons() {
const send = await Ionicons.getImageSource('ios-paper-plane', 26, '#FFFFFF')
const edit = await FeatherIcon.getImageSource('edit', 26, '#FFFFFF')
const share = await FeatherIcon.getImageSource('share', 26, '#FFFFFF')
this.props.navigator.setButtons({
rightButtons: [
{
id: 'edit',
title: 'Edit',
},
],
})
}