Skip to content

Instantly share code, notes, and snippets.

@HannaEsCS
Created May 29, 2023 10:58
- import {View} from 'react-native';
+ import {AppRegistry, View} from 'react-native';
function Profile() {
return (
<View>
{/* ... */}
</View>
);
}
+ if (__DEV__) {
+ AppRegistry.registerComponent('ProfileTest', () => Profile);
+ }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment