Fork me on GitHub
#cljsrn
<
2017-06-15
>
domkm02:06:25

@ronb Have you got sourcemaps working with advanced compilation?

domkm02:06:26

I also can't get whitespace to work. I get this error undefined is not an object (evaluating 'goog.string.Unicode={NBSP:"\xa0"}'). Advanced compilation works fine but, without sourcemaps, debugging is challenging.

manu07:06:59

@ronb thanks! I did it! Now It works 😄 here it is the snippet

ronb07:06:06

@domkm just tried if source-maps work with :advanced build. Tested with “React Native Debugger” CLJS sources don’t show up in the inspector. I also reran re-natal enable-source-maps

ronb07:06:48

works in dev builds. the only problem i had when switching to :advanced was (ocall app-registry ".registerComponent" "wbl" (r/reactify-component app-root)) instead of the correct (ocall app-registry ".registerComponent" "wbl" #(r/reactify-component app-root))

ronb07:06:38

@manu glad i could help 👍

manu07:06:31

@ronb Do you know how to call the react-navigation navigate function? :thinking_face:

class HomeScreen extends React.Component {
  static navigationOptions = {
    title: 'Welcome',
  };
  render() {
    const { navigate } = this.props.navigation;
    return (
      <View>
        <Text>Hello, Chat App!</Text>
        <Button
          onPress={() => navigate('Chat')}
          title="Chat with Lucy"
        />
      </View>
    );
  }
}

ronb07:06:28

@manu hmm i only used redux/re-frame style navigation, but you should be able to access props.navigation inside my-screen. You can see what is passed to that function with (defn my-screen [& args] (pr args))

manu07:06:29

@ronb thanks 😄