glamorous-native icon indicating copy to clipboard operation
glamorous-native copied to clipboard

ThemeProvider breaks build. Listview deprecated error.

Open mdalpozzo opened this issue 6 years ago • 2 comments

  • glamorous-native version: 1.4.2
  • react-native version: 0.60.0
  • react version: 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)

Screen Shot 2019-07-12 at 4 40 19 PM

Reproduction: create react component wrapped in ThemeProvider from glamorous-native library and try to run either as ios or android

mdalpozzo avatar Jul 12 '19 23:07 mdalpozzo

Remove ListView and version bump.

FullstackJack avatar Jul 15 '19 17:07 FullstackJack

Try Emotion/Native

See issue https://github.com/robinpowered/glamorous-native/issues/111

jdegger avatar Jul 22 '19 12:07 jdegger