Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 651ee77

Browse files
committedSep 23, 2021
Get example using real packages via yalc
1 parent deb5561 commit 651ee77

File tree

4 files changed

+2
-37
lines changed

4 files changed

+2
-37
lines changed
 

‎example/App.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import { StatusBar } from 'expo-status-bar';
22
import React from 'react';
33
import { StyleSheet, Text, View } from 'react-native';
4-
5-
const useStyleQueries = require('./useStyleQueries');
6-
const screenWidthMin = require('./queries/screenWidthMin');
4+
import { useStyleQueries, screenWidthMin } from 'react-native-style-queries';
75

86
export default function App() {
97
const styles = useStyleQueries(styleConfig);

‎example/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"react": "16.13.1",
1414
"react-dom": "16.13.1",
1515
"react-native": "https://github.com/expo/react-native/archive/sdk-42.0.0.tar.gz",
16+
"react-native-style-queries": "file:.yalc/react-native-style-queries",
1617
"react-native-web": "~0.13.12"
1718
},
1819
"devDependencies": {

‎example/queries/screenWidthMin.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

‎example/useStyleQueries.js

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.