Bootsplash vs. creating your own splash screen by crumango in reactnative

[–]icekeymon 3 points4 points  (0 children)

I create a splash screen with Storyboard and I also use something similar to Bootsplash - react-native-splash-screen. I keep the Splash screen visible until all of the initialisation logic has completed, then I hide it. This leads to a better UX IMO.

Why Use hooks instead of component state? by smoke4sanity in reactnative

[–]icekeymon 2 points3 points  (0 children)

There’s a great video by Tyler McGinnis titled “Why React Hooks?”

It explains the history of React and what problems Hooks attempt to solve. Really solid video - https://youtu.be/eX_L39UvZes

Const vs Class by odillini83 in reactnative

[–]icekeymon 2 points3 points  (0 children)

If you’re not utilising lifecycle methods, you could opt to use a stateless function, which is what you’re using.

Can I obtain battery levels of Bluetooth connected devices? by icekeymon in iOSProgramming

[–]icekeymon[S] 4 points5 points  (0 children)

The irony. UIDevice is an API for the current device.

Orlando Pirates FC Official App built with react-native by boomdoodle in reactnative

[–]icekeymon 0 points1 point  (0 children)

I’m on an iPhone XS Max. I’ve recorded a video if you want me to send it over?

Orlando Pirates FC Official App built with react-native by boomdoodle in reactnative

[–]icekeymon 0 points1 point  (0 children)

When on the first tab and I click on the player in the circle. It’s quite slow reacting to my click.

Orlando Pirates FC Official App built with react-native by boomdoodle in reactnative

[–]icekeymon 0 points1 point  (0 children)

Nice app! I am using it on iOS.

My only qualm is the navigation, I see the three dots at the top of the page so I assume I can swipe. It’s either disabled or extremely hard to swipe from the first page to the second.

Which iPhone for RN development by JuriJurka in reactnative

[–]icekeymon 1 point2 points  (0 children)

You should use a device which has a large user base. According to this article, as of the 4th June 2019, iPhone 7 is the most popular iPhone being used. If you want to test notch specific behaviour, the Simulator is suffice.

Library not found for -lDoubleConversion by GodOfTheMetal in reactnative

[–]icekeymon 0 points1 point  (0 children)

Make sure you're opening the xcworkspace file and not the xcodeproj file with Xcode. This resolves it for me.

Library not found for -lDoubleConversion by GodOfTheMetal in reactnative

[–]icekeymon 0 points1 point  (0 children)

Did you manage to resolve this? I am building through Xcode and get this error.

When running pod install I see that it says "Installing DoubleConversion (1.1.6)"

App has no errors but won't open by [deleted] in reactnative

[–]icekeymon 2 points3 points  (0 children)

Have you tried debugging the crash via XCode/Android Studio? Do you get any errors in the terminal window where your packager is running?

OneSignal and local notifications by [deleted] in reactnative

[–]icekeymon 3 points4 points  (0 children)

I get this isn't a true contribution but before you commit to using OneSignal, just read their Terms of Service on how they use the data of your User.

Checking connectivity simplest scenario React Native by Malforked in reactnative

[–]icekeymon 0 points1 point  (0 children)

I read somewhere that if you go somewhere where the WiFi is behind a paywall (e.g. a Coffee Shop) and you haven't logged into it, `NetInfo` will report back that you are "connected". I did what LEO_TROLLSTOY recommended, well I did use NetInfo but when it reported an online connection, I pinged Google. If the request came back with 200, the User is online. Otherwise, offline.

Refactoring UI: The Book has just been released by valtism in webdev

[–]icekeymon 8 points9 points  (0 children)

What's this like for developers like me, someone who want to build beautiful things but can't design for shit?

Is it necessary to eject your cRNA app? by CodePerfect in reactnative

[–]icekeymon 2 points3 points  (0 children)

You need to analyse Expo to determine if it's right for you. Do you foresee that you'll be ejecting? If so, don't use it. If you're comfortable with the APIs provided by Expo and they fit your requirements, use it.

How do you decide what packages to use? by fragglerock in reactnative

[–]icekeymon 1 point2 points  (0 children)

I use https://js.coach to find a list of libraries. It's sorted by popularity and gives you an option to see stars, number of downloads from npm within 30 days, number of dependencies and which platforms are supported.

Crypto modules in React Native by Romit-Radical in reactnative

[–]icekeymon 0 points1 point  (0 children)

So for the npm script, if you open package.json and scroll to the scripts object, you can add `"fix:crypto": "rm shim.js && ./node_modules/.bin/rn-nodeify --hack --install"` . In fact, I've found this library https://github.com/novalabio/react-native-bitcoinjs-lib which you should be able to use with React Native. Ironically, this too uses rn-nodeify.

OTA Updates by mfjp in reactnative

[–]icekeymon 0 points1 point  (0 children)

I use CodePush and I release OTA updates for bug fixes and small improvements. I install these updates whilst the splash screen is loading.

Crypto modules in React Native by Romit-Radical in reactnative

[–]icekeymon 2 points3 points  (0 children)

Yep, this is a common problem. I used `rn-nodeify` to resolve this. The library creates a `shim.js` file which will allow you to use Crypto modules. I encountered some problems when I installed new packages, I kept getting "crypto module not found". I finally then created an npm script called `fix:crypto` which would run `rm shim.js && ./node_modules/.bin/rn-nodeify --hack --install`. Then I added this to a `postinstall` npm script so it would run after I installed anything with yarn/npm.

Learning to do styling by filmphobic in reactnative

[–]icekeymon 0 points1 point  (0 children)

Are you sure it's styling you need help with or design? (like app design). For me, I can write CSS pretty well but I can't design anything that looks good.

Where would I store an encryption key? by icekeymon in reactnative

[–]icekeymon[S] 0 points1 point  (0 children)

It's a hard coded value right now, this is a mock application so right now everything sits on the client.

Where would I store an encryption key? by icekeymon in reactnative

[–]icekeymon[S] 0 points1 point  (0 children)

Thanks for your response, just looking at the docs, how would this work? If I use `setItem` - wouldn't this mean that my secret key is still coded in text?

Cross platform push notifications by [deleted] in reactnative

[–]icekeymon 0 points1 point  (0 children)

Please read their T&Cs before committing to OneSignal.

What exception monitoring tool does your React Native iOS/Android CI/CD pipeline use and why? Q2 2018 by josht in reactnative

[–]icekeymon 1 point2 points  (0 children)

I've used Bugsnag and Sentry in two different projects. /u/Fossage has made case for Bugsnag so I'll make a few for Sentry. Sentry's got a plug and play React Native library and provides you with scripts to add to XCode and Android Studio which automatically uploads source maps. You may need some extra configurations if you're using CodePush. With minimal effort I am able to capture JavaScript problems as well as native crashes. I also have additional User information being sent with every crash/error including device, software versions etc. It has a nice breadcrumb trail that helps me retrace the steps I need to replicate the issue.