Tag Archives: react-native

ReactNative Unable to build for android. react-native-maps:debugRuntimeClasspath

Questions: I’m noob using ReactNative, I’ve cloned a react-native project from bitbucket, I’m getting this error related with react-native-maps. it having Android emulator running, also sdk configured in local.properties file. react-native run-android output this Task :app:processDebugGoogleServices Parsing json file: C:\Project\android\app\google-services.json FAILURE: Build failed with an exception. What went wrong: Could not resolve all files for… Read More »

Why isn't toLocaleDateString working in react-native (Android)?

Questions: For some strange reasons, toLocaleDateString isn’t working properly in react-native. Sometimes it works, sometimes it doesn’t. For the following code, const dateString = this.state.date.toLocaleDateString(‘en-US’, { weekday: ‘short’, day: ‘numeric’, month: ‘long’, year: ‘numeric’, }); Sometimes I get just 07/17/2018 and sometimes regular output. Now I can implement it myself or use moment.js or something… Read More »

Why won't my placeholder show up properly? (react-native-datepicker)

Questions: I’m having a really hard time getting a placeholder to show up properly in this datepicker package I’m using for react native… Here’s how I have the component setup: The _onDateChange function: const _onDateChange = (startTime) => { pickDate(props.setPatrolStartTime, startTime) this.setState({startTime: props.setPatrolStartTime}) } The datepicker component: <DatePicker //date={props.startTime} mode=”datetime” iconComponent={ <Icon name=’chevron-down’ type=’font-awesome’ color=’green’/>… Read More »

React-Native: JavaScript regular expression exception (Invalid group) on release mode

Questions: I wrote following function in order to parse available image sizes inside srcset attribute for each img element and return it as array. Everything works as expected when the debug mode is on, but once I disable the debug mode, the app would crash and throw following error: Error: invalid regular expression invalid group… Read More »

react-native prevent keyboard from disappearing on touch, while allowing touch event for InputAccessoryView

Questions: I am on react-native 0.56 and I am working with this react-native-swiper library: https://github.com/leecade/react-native-swiper, and the new InputAccessoryView, although I believe this question is about propagation of events and is generally applicable. In short, I am building an authentication screen very much like this one: [https://i.imgur.com/RAtupcK.jpg] And the desired behavior is that: On press… Read More »