Skip to content

billpliske/pliske-react-native

Repository files navigation

React Native version of billpliske.com

I build this over a weekend, to see how the process has evolved, plus to get some extra RN reps under my belt. I only put up an Android version, because I already had a developer's license. Apple charges way too much for a license, even more so when you're putting up free apps, with no potential income.

Play Store location: https://play.google.com/store/apps/details?id=com.billpliske_native

Set up

Common commands

  • react-native run-android : will launch on both emulator and plugged in device.
  • react-native link : do this whenever you add any new fonts, images, internal JSON, etc. It copies files over to the correct area for Android and iOS.
  • react-native run-android --variant=release
  • ./gradlew assembleRelease (cd to android folder, first)
  • adb uninstall com.billpliske_native

Updating your React Native app in Play Store

  1. Make changes.
  2. Edit android/app/build.gradle
  3. Update versionCode (whole numbers) and versionName (dot upgrades)
  4. Look in android/app/build.gradle file, and make sure you have getPassword(), def pass variable, and signingConfigs. Also look in buildTypes { release { signingConfig
  5. Update gradle.properties
  6. Copy over keystore files: /android/app/my-release-key.keystore
  7. Overwrting an old app? Change the package name: https://stackoverflow.com/questions/37389905/change-package-name-for-android-in-react-native
  8. cd to android folder
  9. In terminal, run ./gradlew assembleRelease ... which builds out a new apk file.
  10. cd back out to main repo folder, and test with ...
  11. react-native run-android --variant=release (you might need to shut down the emulator before this step works)
  12. If everything seems to work fine, go ahead and add a new release in your Play Developer Console.

Debugging

Custom Fonts

  • Only seemed to get TTFs to work. Wanted to use woff2 files (smaller), but instead I just limited the number of custom fonts I used (each ran around 90k).
  • Custom fonts won't render on an Android device (or emulator) unless you first specify a font-weight. It can be '200', 'normal' whatever. Crazy, but it works.
  • labelStyle: { fontSize: 20, fontWeight: "normal", fontFamily: "raleway-black" }

Custom icons

  • Sweet library: ttps://oblador.github.io/react-native-vector-icons/

Layout quirks

  • Bottom bar on Android overlapping the bottom of ScrollView? Throw in an inner View, and add some padding-bottom to it.

About

React native version of my resume/portfolio found on the Play Store.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors