React-Native Image is not displaying after XCode 11.5 Upgrade

I usually display images like this: <Image source={require(‘../../assets/images/color/stuff.png’)} /> <Image source={require(‘../some-other-path/picture.png’)} /> In the past, I could have any arbitrary path I want, in any folder. Then, when I build for release, I do this before I Build > Run: react-native bundle –platform ios –dev false –entry-file index.js –bundle-output ./ios/main.jsbundle Since upgrading to XCode, whenever […]

By TIMEX
Published
Categorised as build, image, ios, react-native, xcode

Receiving javascript heap out of memory when building iOS react native [releasse]

I only receive this error when building in iOS [release]. Debug seems to work. transform[stderr]: FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed – JavaScript heap out of memory transform[stderr]: transform[stderr]: W transform[stderr]: riting Node.js report to file: report.20191007.223532.34356.001.json transform[stderr]: Node.js report completed transform[stderr]: 1: 0x100062df2 node::Abort() [/usr/local/bin/node] transform[stderr]: 2: 0x1000634eb node::OnFatalError(char const*, char […]

By TIMEX
Published
Categorised as ios, javascript, node.js, react-native

Cannot turn autoCorrect to {false} in react native TextInput

On my TextInput change text, I detect whether the user pushed the @ button for mentions. onChangeText(text){ const suggestTrigger = text.match(/[email protected][A-Za-z0-9]*$/i) //grab “@” trigger const searchQuery = (suggestTrigger && suggestTrigger.length > 0) ? suggestTrigger[0] : null; this.setState({ searchQuery: searchQuery }) } Then, in my render, I do: <TextInput autoCapitalize={this.state.searchQuery ? “none” : “sentences”} autoCorrect={this.state.searchQuery ? […]

By TIMEX
Published
Categorised as ios, keyboard, react-native, text

In react-navigation, how do I get the dimensions of the visible area between the header and TabBar?

const viewableWindowHeight = Dimensions.get(‘window’).height – Header.HEIGHT – ??? How do I get the TabBar height? What if the iPhone is X? How can I take that into account? Source: Ios

By TIMEX
Published
Categorised as ios, react-native, react-navigation

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq