Skip to content

Instantly share code, notes, and snippets.

View tj-mc's full-sized avatar
:shipit:

Tom McIntosh tj-mc

:shipit:
  • Dabble
  • Victoria, Australia
  • 16:36 (UTC +11:00)
View GitHub Profile
const Component: FC<{ text: string }> = props => {
return (
<> </>
)
}
type ComponentPropTypes {
text: string
}
const Component: React.FunctionComponent<ComponentPropTypes> = ({text}) => {
return (
<> </>
)
}
const Component = ({text}) => {
return (
<> </>
)
}
import React, {FunctionComponent as FC} from 'react'
const Template: FC<{}> = props => {
return (
<> </>
)
}
@tj-mc
tj-mc / Link.tsx
Created March 7, 2021 01:32
rnw-link-component
@tj-mc
tj-mc / react-native-apple-m1.md
Created May 20, 2021 06:51 — forked from badsyntax/react-native-apple-m1.md
Some tips to working with react-native 0.64 on an Apple M1 Silicon chip

My env:

  • cocoapods 1.10.1
  • xcode 12.4
  • macos big sur 11.2.3
  • react-native 0.64

iOS

The iOS simulator build won't "just work". If you get errors like ld: library not found for... or swift compiler errors, then you need to disable arm64 for the simulator build.