Currently, I have a basic application that serves as my coding playground. I'm experimenting with the code to understand how it all functions.
My process involves using tsc
to compile my .tsx
files into an artifacts
folder, which acts as the starting point for the compilation in gradle.build.
However, I've encountered a roadblock while attempting to add a banner image. It seems that my current use of tsc
does not handle images, even if I import them like so:
import * as brandImage from '../app/assets/brand.png'
It's becoming evident that relying solely on tsc
may not suffice as a build step. If I were working with react-native
instead of typescript
, would it automatically move the required images to a build folder for referencing?
I find myself slightly confused at this juncture. It appears that I may need to transition to utilizing something like babel
to transfer files to a build
or assets
folder for access in my .tsx
files.
Does working within react-native
impact the handling of standard assets typically used in building a react web application? Or is it necessary to follow similar build steps as usual?