native-base

React Native have to double click for onPress to work

回眸只為那壹抹淺笑 提交于 2019-11-28 06:58:46
问题 I'm using React Native with the Native Base library. I need an onPress event to fire on Native Base' ListItem (equivalent to TouchableOpacity) when the keyboard is open. I now have to click once to close the keyboard and then I can press the ListItem. Content tag below is equivalent to ScrollableView: <Content keyboardShouldPersistTaps='always' keyboardDismissMode='on-drag'> <List> <ListItem style={styles.inspectionsItemDivider} itemDivider> <TextInput autoFocus={true} ref={(input) => { this

Module AppRegistry is not registered callable module (calling runApplication)

这一生的挚爱 提交于 2019-11-26 14:04:19
问题 I am using native base for making app in react-native. I am new to both things. When I run the app It gives me this error: Here is my code: export default class Point extends Component { render() { return ( <Container> <Header> <Left> <Button transparent> <Icon name='menu' /> </Button> </Left> <Body> <Title>Header</Title> </Body> <Right /> </Header> </Container> ); } } Here is the screenshot of my versions and nativebase version is "native-base": "^2.1.2" 回答1: Just kill all node process and