0.0.3 • Published 4 years ago

remark-snackplayer v0.0.3

Weekly downloads
34
License
MIT
Repository
github
Last release
4 years ago

Installing

npm install remark-snackplayer

or

yarn add remark-snackplayer

Usage

This plugin parses codeblocks with language set as SnackPlayer and replaces them with embedded Expo's SnackPlayers, you can also provide parameters along with the codeblock to set some basic details.

Example Code Block:

```SnackPlayer name=Hello%20World description=This%20is%20a%20description
import React from 'react';
import { Text, View } from 'react-native';

const YourApp = () => {
    return (
    <View style={{ flex: 1, justifyContent: "center", alignItems: "center" }}>
        <Text>
        Try editing me! 🎉
        </Text>
    </View>
    );
}

export default YourApp;```

The above code snippet would look like this on your page

Parameters:

NameDescriptionDefault
nameSnackPlayer Name"Example"
descriptionDescription of the example"Example usage"
platformExample Platform"ios"
supportedPlatformsSupported Platforms"ios,android,web"

To Do

  • Support Passing Configuration Parameters
  • Write Comprehensive tests

License

MIT © Darsh Patel