glamorous-native
glamorous-native copied to clipboard
ThemeProvider breaks build. Listview deprecated error.
glamorous-nativeversion: 1.4.2react-nativeversion: 0.60.0reactversion: 16.8.6
Relevant code.
import {ThemeProvider} from 'glamorous-native';
const theme = {
main: {color: 'red'},
};
const App: React.FC<{}> = (): React.ReactElement => {
return (
<Provider store={store}>
<ThemeProvider theme={theme}>
<TestScreen />
</ThemeProvider>
</Provider>
);
};
export default App;
What you did: Wrapped react component with ThemeProvider and simple style object.
What happened:
errors:
ListView has been removed from React Native. See https://fb.me/nolistview for more information or use deprecated-react-native-listview.
Module AppRegistry is not a registered callable module (calling runApplication)
Reproduction: create react component wrapped in ThemeProvider from glamorous-native library and try to run either as ios or android
Remove ListView and version bump.
Try Emotion/Native
See issue https://github.com/robinpowered/glamorous-native/issues/111