Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
renderItem({item}) {
const {renderItem} = this.props;
if (renderItem) {
return renderItem({item}, this.openScreen);
}
return (
);
}
outline: true,
outlineColor: Colors.blue30,
color: Colors.blue30,
onPress: () => this.setState({showRelativeToast: false}),
},
{label: 'Yes, close it', onPress: () => this.setState({showRelativeToast: false})},
]}
/>
this.setState({showToast: false})}
allowDismiss={showDismiss}
actions={action}
/>
height: 56,
borderBottomWidth: 1,
borderColor: Colors.dark80,
}}
paddingH-15
row
centerV
spread
>
{props.isSelected && <img>}
)}
getItemLabel={item => item.name}
this.setState({textSide: value})}>
{this.renderRadioButtonWithImageAndText('right', 'Text on right')}
{this.renderRadioButtonWithImageAndText('left', 'Text on left', true)}
this.setState({value})}>
this.state = {
currentPage: 0,
filteredNavigationData: data,
};
this.filterExplorerScreens = _.throttle(this.filterExplorerScreens, 300);
Navigation.events().bindComponent(this);
const navigationStyle = this.getSearchNavigationStyle();
navigationStyle.topBar.rightButtons.push({
id: 'uilib.settingsButton',
testID: 'uilib.settingsButton',
enabled: true,
icon: Assets.icons.settings,
});
Navigation.mergeOptions(props.componentId, navigationStyle);
}
getSearchNavigationStyle() {
return {
topBar: {
drawBehind: true,
translucent: true,
rightButtons: [
{
id: 'uilib.searchButton',
testID: 'uilib.searchButton',
enabled: true,
icon: Assets.icons.search,
},
],
},
};
}
round
backgroundColor='#ff1d8e'
style={{margin: ButtonSpace}}
iconSource={Assets.icons.settings}
iconStyle={{tintColor: Colors.white}}
ref={element => (this.button_0 = element)}
onPress={() => this.showSnippet(this.button_0)}
/>
<button style="{{marginBottom:" size="{'small'}">
</button><button style="{{marginBottom:" size="{'medium'}">
</button>
{_.map(['none', ...colors], (color) => {
const isSelected = color === this.state.selectedColor;
const backgroundColor = color === 'none' ? undefined : color;
return (
this.setState({selectedColor: color})}>
);
})}