Check out example codes for "button image not working swiftui". It will help you in understanding the concepts better.

Code Example 1

var body: some View {
        Button(action: {
          print("button pressed")

        }) {
            Image("marker")
            .renderingMode(.original)
        }
    }

Code Example 2

var body: some View {
        Button(action: {
          print("button pressed")

        }) {
            Image("marker")
            .renderingMode(.original)
        }
    }

Learn ReactJs, React Native from akashmittal.com