Skip to content

Instantly share code, notes, and snippets.

@shreyakupadhyay
Last active April 5, 2021 13:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shreyakupadhyay/451b216ed3225ab2d30ffc9a277f8fff to your computer and use it in GitHub Desktop.
Save shreyakupadhyay/451b216ed3225ab2d30ffc9a277f8fff to your computer and use it in GitHub Desktop.
Medium blog 0.64 version
// before inline default
import { BeforeFunction } from 'before-module';
const BeforeComponent = (props) => {
const view = BeforeFunction();
return <View>{view}</View>;
};
// after inline default
const AfterComponent = (props) => {
const view = require('after-module').AfterFunction();
return <View>{view}</View>;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment